Difference between revisions of "Primset"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 6: Line 6:




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''


PrefixAction:
;?
: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


?    Perform llGetLinkPrimitiveParams 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.
%    Perorm llLinkParticleSystem with the following argument list on the selected prims.
 
$    resize entire linkset.  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 is a comma-separated list of prim names, prim descriptions, and/or prim child id numbers.  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 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.
The initial selection is LINK_SET for Set and LINK_ROOT for Get.

Revision as of 22:11, 11 September 2011

The primset script allows arbitrary lists to be passed to llSetLinkPrimitiveParams, llGetLinkPrimitiveParams and llLinkParticleSystem 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 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.