Jump to content

Texture repeat/offset toggle switch


Jay Taggart
 Share

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

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

Recommended Posts

Hi guys, absolute scripting noob here.

Can anyone point me in the right direction on how to script this?:

Basically I want a button that when clicked will change the texture repeats/offset of another prim object. Basically 2 settings. 1, the default repeats/offsets and 2, a custom texture setting(not a new texture). I only want the button to affect the scaling of the texture, not the texture itself.

I dont know how clear that was. If anyone wants to make a bit of money to script this, feel free to message me. I would imagine it will be an easier script to do.

Thanks. :)

Link to comment
Share on other sites


Jay Taggart wrote:

Hi guys, absolute scripting noob here.

 

Can anyone point me in the right direction on how to script this?:

 

Basically I want a button that when clicked will change the texture repeats/offset of another prim object. Basically 2 settings. 1, the default repeats/offsets and 2, a custom texture setting(not a new texture). I only want the button to affect the scaling of the texture, not the texture itself.

 

I dont know how clear that was. If anyone wants to make a bit of money to script this, feel free to message me. I would imagine it will be an easier script to do.

 

Thanks.
:)

See http://wiki.secondlife.com/wiki/LlSetLinkPrimitiveParamsFast for details on the "vector repeats" of  PRIM_TEXTURE.

 

And if you have any specific question or a problem arises while coding, this would be the appropriate forum to come to for help..

 

Link to comment
Share on other sites

If the other prim is not linked to the one that your scripted button is in, so that you can't use llSetLinkPrimitiveParamsaFast as Leprekhan suggested, then just send a chat signal from one object to the other.  Tell the receiving object to llScaleTexture.

Link to comment
Share on other sites

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