Functions
A function is a specific task exposed by a controller so that it can be invoked from a script.
Contents
Panel Controller
All of the panel controller functions have a “Target widget identifier” setting. For functions that make changes to a widget, the function is applied to all widgets in the panel whose widget identifier matches the value specified for this setting. For functions that return information about a widget, the function result corresponds to the first widget in the panel whose identifier matches the value specified for this setting, as determined by drawing order in the panel.
All widgets
The following functions affect all types of widgets.
Function Name |
Description |
Enable Widgets |
Enables widgets in a panel, making them interactive. |
Disable Widgets |
Disables widgets in a panel, making them non-interactive. |
Show Widgets |
Shows widgets in a panel, making them visible. |
Hide Widgets |
Hides widgets in a panel, making them invisible. |
Activate Widgets |
Activates widgets in a panel as if the user had clicked on them to perform some action. |
Set Mutator State |
Sets the mutator state for widgets in a panel.
|
Get Widget Color |
Returns one of the colors assigned to a widget in a panel.
|
Set Widget Color |
Sets one of the colors assigned to widgets in a panel.
|
Widgets having an integer value
The following functions affect these widgets: check box, radio button, progress bar, slider, scroll bar, list box, multipane box, and popup menu.
Function Name |
Description |
Get Widget Value |
Returns the current value of a widget in a panel. |
Set Widget Value |
Sets the current value of widgets in a panel.
|
Image widgets
The following functions affect only image widgets.
Function Name |
Description |
Get Widget Image |
Returns a string that contains the name of the texture map used by an image widget in a panel. |
Set Widget Image |
Sets the name of the texture map used by image widgets in a panel.
|
Text widgets
The following functions affect only text widgets and edit text widgets.
Function Name |
Description |
Get Widget Text |
Returns a string that contains the text used by a text widget in a panel. |
Set Widget Text |
Sets the text used by text widgets in a panel.
|
Camera widgets
The following functions affect only camera widgets.
Function Name |
Description |
Set Camera Connector Key |
Sets the connector key used by camera widgets in a panel.
|
Paint widgets
The following functions affect only paint widgets.
Function Name |
Description |
Get Paint Widget Brush Radius |
Returns the brush radius (as a floating-point value) used by a paint widget in a panel. |
Set Paint Widget Brush Radius |
Sets the brush radius used by paint widgets in a panel.
|
Get Paint Widget Brush Fuzziness |
Returns the brush fuzziness (as a floating-point value) used by a paint widget in a panel. |
Set Paint Widget Brush Fuzziness |
Sets the brush fuzziness used by paint widgets in a panel.
|
Get Paint Widget Brush Opacity |
Returns the brush opacity (as a floating-point value) used by a paint widget in a panel. |
Set Paint Widget Brush Opacity |
Sets the brush opacity used by paint widgets in a panel.
|
Get Paint Widget Brush Color |
Returns the brush color used by a paint widget in a panel. |
Set Paint Widget Brush Color |
Sets the brush color used by paint widgets in a panel.
|
Movie widgets
The following functions affect only movie widgets.
Function Name |
Description |
Play Movie Widget |
Plays movie widgets in a panel. |
Stop Movie Widget |
Stops movie widgets in a panel. |
Get Movie Widget Time |
Returns the current time, in floating-point seconds, for a movie widget in a panel. |
Set Movie Widget Time |
Sets the current time for movie widgets in a panel.
|
Physics Controller
Function Name |
Description |
Set Gravity |
Sets the global acceleration of gravity.
|
Water Controller
Function Name |
Description |
Generate Point Wave |
Generates a wave at a single point in a water block.
|
Generate Line Wave |
Generates a wave along a line segment in a water block.
|
Animation Controller
Function Name |
Description |
Play Animation |
Plays an animation for a model.
|
Stop Animation |
Stops an animation for a model. |