Difference between revisions of "Primset"

From Second Life Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
The primset script allows arbitrary lists to be passed to llSetLinkPrimitiveParams, llGetLinkPrimitiveParams and llLinkParticleSystem via a chat channel.  The default channel is 884.
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.
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.


Line 8: Line 8:
The message format is:  ''[optional-list-of-prims]  ''optional-prefix-character''  ''list-of-params''
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 loop the animation.
:'''Caution:  If the animation does not return to its starting point,  this will eventually cause the object to go off-parcel,  off-world,  or underground.'''
;@%
: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.
;#
:Pass the following arguments to llSetLinkTextureAnim.
;?
;?
:Perform '''llGetLinkPrimitiveParams''' with the following argument list on the selected prims.
:Perform '''llGetLinkPrimitiveParams''' with the following argument list on the selected prims.

Latest revision as of 18:47, 17 December 2012

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 loop the animation.
Caution: If the animation does not return to its starting point, this will eventually cause the object to go off-parcel, off-world, or underground.
@%
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.
Pass the following arguments to llSetLinkTextureAnim.
?
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.