Primset

From Second Life Wiki
Revision as of 01:45, 14 December 2011 by Rufus Darkfold (talk | contribs)
Jump to navigation Jump to search

The primset script allows arbitrary lists to be passed to llSetLinkPrimitiveParams, llGetLinkPrimitiveParams, llLinkParticleSystem, and llSetKeyframeMotion via a chat channel. The default channel is 884. The script does not listen until it receives a mouse click. The listen will be cancelled after 5 minutes of inactivity or upon receiving an empty chat message.

This script would normally be installed in the root prim of the target object. There is no need for additional copies in the child prims. The PrimControl HUD works with this script.


The message format is: [optional-list-of-prims] optional-prefix-character list-of-params

@
Perform llSetKeyframeMotion with the following argument list on the selected linksets. A linkset is selected if its root prim is selected.
@%
As above, but "Ping-Pong" the animation.
@^
As above, but play the animation in reverse
@@
Pause any animation that is playing. Start will continue it from where it left off.
@ (by itself)
Stop any animation that is playing. Start will restart it from the beginning.
@!
Start or resume the last animation played.
@@@
Return to the position and rotation before the last animation played.
?
Perform llGetLinkPrimitiveParams with the following argument list on the selected prims.
%
Perorm llLinkParticleSystem with the following argument list on the selected prims.
$
resize entire linkset (regardless of which prims are selected). list-of-params should be a scalar or vector. If a vector is used with x!=y!=z and all prims are not aligned the same way, it may not do what you want.
none
Perform llSetLinkPrimitiveParamsFast with the following argument list on the selected prims
[optional-list-of-prims]
a comma-separated list of prim names, prim descriptions, and/or prim child id numbers, enclosed in square brackets. If specified, this becomes the new subset that this and following commands will target.

The selection status of any prim can also be toggled by clicking it with the mouse, once the linkset has been selected.

The initial selection is LINK_SET for Set and LINK_ROOT for Get.