|
Boris Eebus
Registered User
Join date: 8 Feb 2008
Posts: 45
|
02-20-2008 03:51
hi,
I would like to use some dynamic prims if this is possible:
When someone touches an image I want the primitive to appear in SL for instance if someone touches an image of a pot - the prim pot appears.
Could this be done with a bunch of prims which reorder themselves depending on which image is touched i.e. a pot which changes to a different type of pot
any ideas?
|
|
Haplo Voss
Registered User
Join date: 18 Nov 2006
Posts: 137
|
02-20-2008 04:37
If I understand you correctly, what you are looking for is llRezObject. You can take the object in question (teapot), and place it in the contents of a prim with a picture of the teapot on it.
then when someone touches it, it will rez the teapot in front of them.
Is this what you are wanting?
You can have any number of prims with images on them, with items inside of them so that when people click on them, the item will rez for them. So you can sort either by that alone, or you can create a list of items to keep inside of one prim, and give that person a menu when they click on the image so they can choose from several items you have inside that prim.
Lots of different options.
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
02-20-2008 09:42
Yes, you COULD also have a whole object reshape and retexture itself. Your object will have to have as many prims as the biggest build it will morph into and hide the ones not currently being used, unless you want things to get quite complicated (rezzing additional prims with link permissions to add on, breaking off prims dynamically...might as well go with the full object rezzing solution at that point).
llSetPrimitiveParams() will be your friend when doing this, so that you can completely change the shape, color, position, orientation, and other properties of the prims all at once. You might want a script that can report llGetPrimitiveParams() values on command so they can be munged (love that word) into a format that can, say, be stuffed into notecard(s) and loaded depending on the shape being switched to. It might be nice to package it so that there is a notecard for each shape, each line having the parameters for the corresponding prim in the link set (or more realistically N lines per prim, since you'll likely run into the character line limit.... (Then you could even just configure your object with a list of notecard keys for the shapes...maybe even in another notecard.... O.o )
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
02-20-2008 13:27
strife wrote a nice little function for grabbing prim settings and spitting them out in a format that will directly feed into a Set call... located on the lsl portal page under useful snippet in the llGetPrimitiveParams page 
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|