News: SMF - Just Installed!
Welcome, Guest. Please login or register.
Did you miss your activation email?

 Raglan Shire ForumsRaglan ShireThe VaultScriptsTopic: Set Linked Prims to Blank
Pages: [1]   Go Down
Print
Author Topic: Set Linked Prims to Blank  (Read 667 times)
Azelle Mavendorf
Friend of the Shire

Offline Offline

Posts: 75



View Profile
« on: May 29, 2009, 12:06:10 AM »

I hate opening the texture browser from Edit on a prim; it takes forever. Usually I just drag textures from my inventory into the texture window instead. Unfortunately, the Edit window is the only way to access the default Blank texture. To save myself some time, I tracked down the UUID of said texture and wrote a quick script that sets all prims in a link set to Blank and then deletes itself from the object. Enjoy.

==============================================
//SetBlank.lsl
//Sets all prims in a link set to the default Blank texture, then deletes itself
//By Azelle Mavendorf
//May 2009
//Free script - Content creation only

default
{
    state_entry()
    {
        key texture = "5748decc-f629-461c-9a36-a35a221fe21f";   //What texture - Linden blank texture UUID
        integer face = ALL_SIDES;                               //Which faces - all
        integer numPrims = llGetNumberOfPrims();                //How many prims - all in the linkset
       
        llSetLinkTexture(LINK_SET, texture, face); //set the texture to all prims in the set
       
        llRemoveInventory(llGetScriptName()); //delete this script when done
    }
}
Logged

Catten Carter
REAG
Friend of the Shire

Offline Offline

Posts: 62



View Profile
« Reply #1 on: May 29, 2009, 05:52:02 AM »

Its a good tip - Good news for all that hate the delay. In 1.23 RC4, the texturepicker delay/freeze should be fixed! Finally!
Logged
Awenbunny Lisle
Friend of the Shire

Offline Offline

Posts: 18


Awesome Possum


View Profile
« Reply #2 on: May 29, 2009, 05:58:51 AM »

wasn't that a "feature"?
Logged
Catten Carter
REAG
Friend of the Shire

Offline Offline

Posts: 62



View Profile
« Reply #3 on: May 29, 2009, 06:43:26 AM »

I'm sure lindens think lag, freeze and delays are features of SL - happening so often as they do, they might as well be Smiley

Time to head home. See you all Cheesy
Logged
Karmagirl Avro
REAG
Friend of the Shire

Offline Offline

Posts: 14



View Profile
« Reply #4 on: May 29, 2009, 09:55:07 AM »

ya it would lock up for me too, it would say second life (not responding) still does it for me, so how then is it fixed?? I can't blank out textures either without tearin out my fur. even did it for me last night at haiku build. grrrr

no clue how to use the script though, but catten claims its fixed or being fixed soon? when?!
Logged
Azelle Mavendorf
Friend of the Shire

Offline Offline

Posts: 75



View Profile
« Reply #5 on: May 29, 2009, 11:18:06 AM »

no clue how to use the script though
Just copy it from here and paste it into a script in-world. Drop the script in any build and BAM it will set all linked prims to blank and then delete itself when finished. That's it! Smiley
Logged

Catten Carter
REAG
Friend of the Shire

Offline Offline

Posts: 62



View Profile
« Reply #6 on: May 29, 2009, 12:00:51 PM »

ya it would lock up for me too, it would say second life (not responding) still does it for me, so how then is it fixed?? I can't blank out textures either without tearin out my fur. even did it for me last night at haiku build. grrrr

no clue how to use the script though, but catten claims its fixed or being fixed soon? when?!

What az said Smiley

What I said in a somewhat confusing (geeky) way was that it will be fixed in the 1.23 version second life viewer (the current is 1.22).
Logged
Pages: [1]   Go Up
Print
 Raglan Shire ForumsRaglan ShireThe VaultScriptsTopic: Set Linked Prims to Blank
Jump to: