Simple Dialog Texture Changer

This is a simple script that presents a dialog listing all textures in a prim and on selection, sets that texture.  Textures can be specified by including them in the prim directly or by using name=value pairs of texturename=uuid in a notecard (one texture=uuid per line).

https://wiki.secondlife.com/wiki/User:Kimm_Paulino/Scripts#Dialog_Texture_Changer

It uses a multi-page dialog menu if it needs to and sets the texture using llSetTexture.  There is an option to have to continually display the dialog after a texture has been selected (just set gReshow  = TRUE) which might be handy if  you are trying out textures.

Update Jun 2012: Added better single-page dialog handling for when there are less than 12 textures.

There is a similar script that uses a HUD to set textures and communicate it to other objects nearby, although it doesn’t support notecards and UUIDs, here:

I also have a version, that I’m still deciding what to do with, that will set a texture for all prims in a linkset, whilst keeping any texture offsets, rotations and scalings complete.  If you want to have a go at this yourself, you need to read about llGetNumberOfPrims, llGetLinkNumberOfSides, llGetLinkPrimitiveParams and finally llSetLinkPrimitiveParamsFast.

If you are not comfortable pasting scripts from the web into SL you can buy a pre-packaged version of this script on the marketplace, or in-world at my store.

Kimm.

Advertisements

~ by kimmpaulino on January 15, 2012.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: