Jump to content
Sign in to follow this  
Pazzo Pestana

Texture changer for multiple textures

Recommended Posts

I would like to change multiple textures in a prim on touch.  The scripts I've found only accommodate 2 textures. I prefer to use UUID rather than a texture name.

thanks!

Share this post


Link to post
Share on other sites

So, when you write your script, include the textures by name in a list in your script, so that you can call them in a llDialog. That will require having a second list with the UUIDs in the same order as the name list, or perhaps creating a single strided list that alternates names and UUIDs.  Then, when you choose a specific texture with the dialog, apply it with

llSetTexture(llList2String(texture_uuid_list, idx), face_number);

If you're not quite sure how to construct dialogs, see http://wiki.secondlife.com/wiki/DialogMenus

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...