Jump to content

SetLinkAlpha and SetLinkColor for several prims


Tattooshop
 Share

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

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

Recommended Posts

Hello! how to simplify this part?

                llSetLinkColor(3, < 1.0, 1.0, 1.0 >, 0);
                llSetLinkColor(4, < 1.0, 1.0, 1.0 >, 0);
                llSetLinkColor(5, < 1.0, 1.0, 1.0 >, 0);
                llSetLinkAlpha(3, 1.0, 0);
                llSetLinkAlpha(4, 1.0, 0);
                llSetLinkAlpha(5, 1.0, 0);

There is an opportunity to use PRIM_LINK_TARGET in SLPPF, but is there anything like this in SetLinkAlpha and SetLinkColor? :)

 

 

Edited by Tattooshop
Link to comment
Share on other sites

No, but why not combine it all into one SLPPF call using PRIM_COLOR (which does the alpha, too) and PRIM_LINK_TARGET?

(The ones that are a problem are llRotateTexture, llScaleTexture, and llOffsetTexture that are all performed with PRIM_TEXTURE but unlike the non-SLPPF calls, PRIM_TEXTURE requires you to specify the texture itself, which you may not have.)

Edited by Qie Niangao
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

6 hours ago, Qie Niangao said:

No, but why not combine it all into one SLPPF call using PRIM_COLOR (which does the alpha, too) and PRIM_LINK_TARGET?

(The ones that are a problem are llRotateTexture, llScaleTexture, and llOffsetTexture that are all performed with PRIM_TEXTURE but unlike the non-SLPPF calls, PRIM_TEXTURE requires you to specify the texture itself, which you may not have.)

Genious! :D

                llSetLinkPrimitiveParamsFast(3, [18, 0, < 1.0, 1.0, 1.0 >, 1.0, 34, 4, 18, 0, < 1.0, 1.0, 1.0 >, 1.0, 34, 5, 18, 0, < 1.0, 1.0, 1.0 >, 1.0]);

Thank you!
 

Edited by Tattooshop
  • Like 2
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1450 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...