runscript node

Summary

The runscript node runs a segment of script in the language stated by the type attribute.

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

Children

This node cannot contain children.

Example B.9. Use of runscript node

<runscript type="text/x-lua" code="myFunction()"/>

Attributes

runscript attributes
nametypedefaultnotes
typemime-type of scriptthis attribute must be specifiedthe type of the script that is in the name attribute
codesegment of scriptthis attribute must be specifieda short segment of script to be executed

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