Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
|
11-29-2005 09:52
I'm working on a simple item - a scripted kneeling cushion. Yeah, I know there's tons of 'em out there. But a person has to start somewhere, and I wanted to have a few features I couldn't find elsewhere. In particular, I wanted to use some better-looking textures, based on actual antique Japanese fabrics - and I wanted to make it as efficient as possible, for low-lag script impact and prim usage.
I have so far managed to make a 1-prim pillow that incorporates a modified pose-ball script. This allows the pillow to offer a usable kneeling pose, while not needing a second prim for the pose ball. Makes it a bit harder to adjust for Avatar size, but if you want to toss several of these around your home, as I do, all those extra prims and show/hide scripts add up.
Now to my question...
I would like to have a scripted way for the user to be able to change the texture of the pillow to one of 4 fabric patterns. But I don't want to leave the patterns in the contents of the pillow, where they can easily nab them for use in other items, because I would like to sell the fabric texture as a seperate item. Is there a way to script that, which won't require adding several invisible versions of the pillow?
Or am I better off just leaving the pillow itself +Mod, so they can alter the texture, and selling my alternate textures seperately?
|
JackBurton Faulkland
PorkChop Express
Join date: 3 Sep 2005
Posts: 478
|
11-29-2005 09:56
yes its very easy to do. Go to the Wiki and look up at how to do it or i can provide the script you need for a fee.
_____________________
You know what Jack Burton always says... what the hell?
|
Senuka Harbinger
A-Life, one bit at a time
Join date: 24 Oct 2005
Posts: 491
|
11-29-2005 10:25
From: Ceera Murakami
I would like to have a scripted way for the user to be able to change the texture of the pillow to one of 4 fabric patterns. But I don't want to leave the patterns in the contents of the pillow, where they can easily nab them for use in other items, because I would like to sell the fabric texture as a seperate item. Is there a way to script that, which won't require adding several invisible versions of the pillow?
it's easy. make the textures no mod/no copy/no transfer, and stick them inside the prim. then the owner *can* take the textures out, but they can only use them once, and they'll be removed from the pose pillow entirely. or you might be able to call the texture you want by using the texture's key, that way you don't need to include the texture anywhere on the pillow itself.
|
Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
|
11-29-2005 11:00
Thank you both. That gave me the start I needed. 
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
11-29-2005 12:18
You don't even need to put the textures in the prim. All you need is to put the texture *keys* in the script inside the prim. You can keep the textures themselves in your own inventory.
|
Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
|
11-29-2005 12:53
Yes, I think that is the 'key' to my solution.  By referencing texture keys, and using the info from the WIKI on llSetTexture, I can do it. One concern, however. What would happen to those items where I reference a texture by it's key, if I somehow lose the part of my Inventory where that key exists? Or if I should quit SL entirely? If I sold 100 cushions, and used a key to reference their texture, and then accidentally deleted the textures I used for them in my inventory, would they all lose their textures? Would there be any way to fix that? If I make a 'backup copy' of a texture and keep it elsewhere in the same Avatar's Inventory, does it have the same Key? I would suspect both copies have unique keys... Making the textures no mod/no copy/no transfer, and sticking them inside the prim might be safer.
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
11-29-2005 15:21
whats suposta happen is if there is a copy of the texture out there somewhere it will still be in the asset server, rather its actually in your inventory or not
|