Bobbyb's texture changer
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
The following is a compilation of several versions of scripts that will change the texture on an object or linked set in various ways. These were written by Bobbyb30 Swashbuckler in LSLEditor. Please Note: While they are slightly optimized, it is possible to make them slightly faster/smaller using different functions/hacks. They should work fine in mono & LSO.
Creator
Contributors
If you modify/improve upon the script, please add your name here.
License
They are hereby released into public domain.
Disclaimer
These programs are distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Collection of texture changing scripts
There are two version of the scripts, one which will require the textures to be in inventory, and another which works off of an input list of texture UUIDS. (By using texture names however, you could use the input list scripts as loading from inventory.)
Compilation of Texture Changing Scripts
Using llSetTexture
This method is slower, and less efficient than llSetPrimitiveParams and llSetLinkPrimitiveParams
These scripts display the given textures on all the prims and all the sides within a linked set.
- Simple Texture Changer (for inventory)(all prims & all sides).lsl
- Simple Texture Changer (input list)(all prims & all sides).lsl
These scripts will display the given textures on all the sides of certain prims in a linked set.
- Simple Texture Changer (for inventory)(certain prims & all sides).lsl
- Simple Texture Changer (input list)(certain prims & all sides).lsl
These scripts will display the givn texture on certain sides of certain prims in a linked set.
- Simple Texture Changer (for inventory)(multiple prims & multiple sides).lsl
- Simple Texture Changer (input list)(multiple prims & multiple sides).lsl
These scripts will display the given textures on a single side or all sides of a given prim.
- Simple Texture Changer (for inventory)(for one side or all sides).lsl
- Simple Texture Changer (input list)(for one side or all sides).lsl
These scripts will display the given textures on more than one side of a given prim.
- Simple Texture Changer (for inventory)(more than one side).lsl
- Simple Texture Changer (input list)(more than one side).lsl
Using llSetPrimitiveParams & llSetLinkPrimitiveParams
This method is faster and more efficient than using llSetTexture or llSetLinkTexture
These scripts display the given textures on all the prims and all the sides within a linked set.
- Texture Changer (inventory)(all prims & all sides)(params).lsl
- Texture Changer (list)(all prims & all sides)(params).lsl
These scripts will display the given textures on all the sides of certain prims in a linked set.
- Texture Changer (inventory)(certain prims & all sides)(params).lsl
- Texture Changer (input list)(certain prims & all sides)(params).lsl
These scripts will display the givn texture on certain sides of certain prims in a linked set.
- Texture Changer (inventory)(multiple prims & sides)(params).lsl
- Texture Changer (list)(multiple prims & sides)(params).lsl
These scripts will display the given textures on a single side or all sides of a given prim. -For these it doesn't matter...so I didn't include.
These scripts will display the given textures on more than one side of a given prim.
- Texture Changer (inventory)(more than one side)(params).lsl
- Texture Changer (list)(more than one side)(params).lsl
Remote Texture Loader
- Remote Texture Loader- A set of script for remotely loading textures within a sim. Useful for billboards.
Texture Switchers
- Touch Texture Switch.lsl - When touched, it will switch the texture between 2 textures. It is very efficient.