Difference between revisions of "Bobbyb's texture changer"

From Second Life Wiki
Jump to navigation Jump to search
Line 45: Line 45:
===Using llSetPrimitiveParams & llSetLinkPrimitiveParams===
===Using llSetPrimitiveParams & llSetLinkPrimitiveParams===
This method is faster and more efficient than using llSetTexture or llSetLinkTexture
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]]

Revision as of 13:23, 28 November 2009

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.

These scripts will display the given textures on all the sides of certain prims in a linked set.

These scripts will display the givn texture on certain sides of certain prims in a linked set.

These scripts will display the given textures on a single side or all sides of a given prim.

These scripts will display the given textures on more than one side of a given prim.

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.

These scripts will display the given textures on all the sides of certain prims in a linked set.

These scripts will display the givn texture on certain sides of certain prims in a linked set.

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.