|
Bodhisatva Paperclip
Tip: Savor pie, bald chap
Join date: 12 Jan 2007
Posts: 970
|
04-08-2008 18:44
I've been having fun with prim animation (I think it's called) making a prim change shape, size color, rotation, etc. and have managed some basic stuff. In the LSL wiki I found how to set prim parameters and to this point have been laboriously comparing the settings in an editing window with the different vectors and floats to see what they do while I fiddle with the numbers as the script is running.
Is there either A) a resource that spells out what the numbers mean in more detail (like why are there three numbers for the cut vector when there are only two cut directions) or B) a way I can set up a prim and then have it tell me what its parameters at the moment are in the chat line? (I'm a rank amateur as you may have noticed.) I once had a guy get my UUID by having me touch a prim and it came up in the chat line so I assume it can be done.
Help?
_____________________
I've trademarked the apostrophe. You're in trouble but you are not. 
|
|
Anti Antonelli
Deranged Toymaker
Join date: 25 Apr 2006
Posts: 1,091
|
04-08-2008 19:47
llGetPrimitiveParams is what you want. The function spits out a bunch of raw numbers without being separated by the parameter names so it's a bit inscrutable, but thankfully Strife wrote a function that encapsulates the data in a way that's identical to a llSetPrimitiveParams call so it's much more readable and useful. On the old wiki here: http://www.lslwiki.net/lslwiki/wakka.php?wakka=llGetPrimitiveParamsStrife's function is near the bottom. You'll need to put it in a small script that calls the function on touch, or repeatedly on a timer, or on moving, or something like that. Hope that helps some.
_____________________
Designer of sensual, tasteful couple's animations - for residents who take their leisure time seriously.  http://slurl.com/secondlife/Brownlee/203/110/109/ 
|
|
Bodhisatva Paperclip
Tip: Savor pie, bald chap
Join date: 12 Jan 2007
Posts: 970
|
04-09-2008 05:03
Thanks, Anti. I will give that a shot and see how it goes. It's on the complicated side for me but almost everything I've learned so far is by taking scripts apart to see how they work. Thanks again!
_____________________
I've trademarked the apostrophe. You're in trouble but you are not. 
|
|
Pale Spectre
Registered User
Join date: 2 Sep 2005
Posts: 586
|
04-09-2008 11:40
For a poor-man's approach just to get the basic idea, try things like this: llOwnerSay((string)llList2CSV(llGetPrimitiveParams(PRIM_TYPE))); llOwnerSay((string)llList2CSV(llGetPrimitiveParams(PRIM_TEXTURE))); Stife's function is somewhat more capable but either way the output can look scary.  However, one piece of advice when using llSetPrimitiveParams. Try and avoid setting the same values that are already in force (ie. only set things that actually need to change). llSetPrimitiveParms used gratuatiously can be a real Lag Monster.
|