Cara Ametza
Registered User
Join date: 25 Sep 2008
Posts: 10
|
11-17-2009 12:00
I'm working on a texture change script for some stuff in my store and wanting to use llSetLinkPrimitiveParams to reduce the number of scripts in the item. However, I'm finding that each face of each prim requires it's own separate line because the repeats and offsets on a couple of sides are a bit different. Is there a way to have more than 1 face change with just 1 line? Or otherwise speed up the script, it takes a few seconds for all of the sides to change now and so far it's only a total of 3 prims changing, 1 changes color and the other 2 change textures.
Would be nice to be able to just set the texture and leave offset and rotation as they already are since those aren't changing.
Thanks for any help that can be offered
Cara
|
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
|
11-17-2009 12:06
I've never tried it but I'd think that something like...
llSetLinkPrimParams (primNumber [ PRIM_TEXTURE, face1, texture1, repeats1, offsets1, rotation1, PRIM_TEXTURE, face2, texture2, repeats2, offsets2, rotation2, PRIM_TEXTURE, face3, texture3, repeats3, offsets3, rotation3, ]);
...should work. You'll still have to do a separate llCall for each prim, though.
edit: and you can mix in prim color, position, rotation and stuff in the list for a single call, too.
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!! - Go here: http://jira.secondlife.com/browse/SVC-1224- If you see "if you were logged in.." on the left, click it and log in - Click the "Vote for it" link on the left
|
Cara Ametza
Registered User
Join date: 25 Sep 2008
Posts: 10
|
11-17-2009 13:06
\o/ I have found a better way. Using llSetLinkColor and llSetLinkTexture reduces the number of lines needed to 1 per prim (since all faces are same texture) and speeds up the process significantly over a separate line per face.
|