set node

Summary

The set node changes the value of a boolean parameter of another node.

For more information regarding the scripting of this node see the scripting reference entry for set.

Children

This node cannot contain children.

Example B.11. Use of set node

<set object="myobject" what="visible" to="false"/>

Attributes

set attributes
nametypedefaultnotes
objectnode idthis attribute must be specifiedthe id of the object with the parameter to change
whatvisiblethis attribute must be specifiedthe name of the parameter to change
totrue or falsethis attribute must be specifiedthe value to set the parameter to

Attributes common to action nodes
nametypedefaultnotes
timesinteger1the number of times to perform this action. Use -1 to repeat indefinitely

Attributes common to nodes
nametypedefaultnotes
visiblebooleantrueIf false, this node (or its children, if it has any) will not be rendered.
colorr g b a (in range 0 to 1)1 1 1 1specifies the color used to modulate this node and its children
idstring an identifier used to refer to this node