Jump to content

llSetLinkPrimitiveParamsFast to set texture, but keep stuff the same?


Yamil Dagger
 Share

You are about to reply to a thread that has been inactive for 3940 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

llSetLinkPrimitiveParamsFast(1, [PRIM_COLOR, 3, <1,1,1>, 1,PRIM_TEXTURE, 3, TEXTUREUUID, SAME, SAME, SAME ]);

I'm trying to use llSetLinkPrimitiveParamsFast to set both color and texture like above but I have no clue what vectors or whatever to set for the other 3 values it needs. How can I set the texture using this command but leave the next 3 values to same as they are already set to.

Yes, the repeats,offset, and rotations are all set and unique and yes I NEED to use this command for this project.

Help?

Link to comment
Share on other sites

There is no other way, but to read the values out of the prim using llGetPrimitiveParams or the discrete functions
Furthermore you can not get the texture UUID if you don't have full permission on the object who has the texture
llGetPrimitiveParams will get the ZERO_KEY and not the texture UUID if you don't have full permission

:smileysurprised::):smileyvery-happy:

Link to comment
Share on other sites


Yamil Dagger wrote:

I figured that would work but there's no easy or in-line way of simply saying "no change"?

No way of saying it that way, but if you're using llSPPF to set your texture repeatedly, you can store [ vector repeats,vector offsetsfloat rotation_in_radians ] in a global list and simply append it in your call as many times as needed.

 

In other words, get the unchanging values once with llGetLinkPrimitiveParams and reuse them as needed. :matte-motes-nerdy:

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3940 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...