Documentation - Maxscript
UI_Panel : Helper
The UI_Panel is a system that allows the creation and display of different custom user interface controls (UI Controls) that can be used to manipulate different elements in scene, specially useful for character rigging.
It has pickers that can be used to select objects. It has sliders, spinners, 2d sliders and 2d spinners that can be used to animate parameters in the scene. It has action buttons that execute customized commands. It has toggle buttons to turn off and on parameters in the scene. And it also has other type of UI controls like images, groups, and group selections.
All these different kind of UI Controls can be created in the UI Panel manager dialog window, where the user can define their position and size interactively. The controls will be stored in the UIPanel helper, and there can be several different UIPanels in the scene, each one can be accessed in different tabs in the UI Panel manager after being opened there before.
Methods
Opens the UI Panel Manager.
Creates an UIPanel in the scene.
UI_Panel Properties
Get/set the size of the display of the UI Panel helper.
This array contains the list of UI Controls in the UI Panel.
Used internally.
UI_Panel Methods
Opens this UI Panel in the UI Panel Manager.
Closes this UI Panel in the UI Panel Manager.
Returns the number of UI Controls in the UI Panel.
Adds the selected nodes in the scene to the UI Panel as UI Pickers. The UI Pickers will be returned as an array.
Creates a group selection UI Control with the selected UI Control of this UI Panel.
Creates a group UI Control around the selected UI Controls of this UI Panel.
Adds a UI Control of the specified type to this UI Panel. The type parameter can be one of the following:
#Group #GroupSelect #Image #Picker #Toggle #Action #HorizontalSlider |
#VerticalSlider #DiagonalSlider #2DSlider #HorizontalSpinner #VerticalSpinner #DiagonalSpinner #2DSpinner |
Returns the type of the specified UI Control.
Deletes the selected UI Controls in this UI Panel.
Deletes the specified UI Control in this UI Panel.
Select the specified UI Controls in this UI Panel.
Deselect the specified UI Controls in this UI Panel.
Executes the action script of the specified UI Controls in this UI Panel.
Opens the "Set Script" dialog of the selected UI Action in this UI Panel.
Returns the number of selected UI Controls in this UI Panel.
Transform the selected UI Controls (Alignment, Mirror, Arrange). The transform type can be one of the following:
#AlignHorizontal #AlignVertical #MatchSize #MatchWidth #MatchHeight #LayoutHorizontal #LayoutVertical |
#MirrorHorizontal #MirrorVertical #MirrorHorizontalLocal #MirrorVerticalLocal #BringToFront #SendToBack |
Duplicate the selected UI Controls in this UI Panel.
Duplicate the selected UI Controls in this UI Panel.
<void> <UI_Panel>.SecondaryAction <integer array>indices
<void> <UI_Panel>.SetControlsValues <integer array>indices <float array>values1 <float array>Values2
<void> <UI_Panel>.SetSelectedControlsParam <integer array>indices <value>paramValue
<void> <UI_Panel>.SetSelectedControlsToDefault()
<void> <UI_Panel>.GetControlsIDs <&integer array>IDs
<void> <UI_Panel>.GetControlsParams <&integer array>indices <&integer array>paramIDs <&string array>values
<void> <UI_Panel>.GetAnimatedParams <&integer array>indices <&integer array>paramIDs <&string array>values
<void> <UI_Panel>.GetChangedParams <&integer array>indices <&integer array>paramIDs <&string array>values
<void> <UI_Panel>.GetSelectedControlsParam <integer>paramID <&integer>count <&boolean>different
<integer> <UI_Panel>.SetControlSelection()
<integer> <UI_Panel>.ShowSelectedInTrackView()
These methods are used internally.
UIControl Properties
The UIControl can be accessed with the .uiControls array in the UI Panel.
These properties are accessible to all the types of UI Controls (UIGroup, UIGroupSelect, UIImage, UIPicker, UIToggle, UIAction, UISlider, UI2DSlider, UISpinner, UI2DSpinner)
<UIControl>.color Color
<UIControl>.position Point2
<UIControl>.size Point2
<UIControl>.selected Boolean
UIGroup Properties
There are no additional properties accessible for UIGroup controls.
UIGroupSelect Properties
UIImage Properties
UIPicker Properties
UIToggle Properties
UISlider Properties
<UISlider>.value Float
<UISlider>.value_min Float
<UISlider>.value_max Float
<UISlider>.joystick_radius Float
<UISlider>.display_label Boolean
<UISlider>.display_value Boolean
<UISlider>.default Float
UI2DSlider Properties
<UI2DSlider>.y_value Float
<UI2DSlider>.x_value_min Float
<UI2DSlider>.x_value_max Float
<UI2DSlider>.y_value_min Float
<UI2DSlider>.y_value_max Float
<UI2DSlider>.joystick_radius Float
<UI2DSlider>.display_label Boolean
<UI2DSlider>.display_value Boolean
<UI2DSlider>.x_default Float
<UI2DSlider>.y_default Float
UISpinner Properties
<UISpinner>.value Float
<UISpinner>.scale Float
<UISpinner>.display_label Boolean
<UISpinner>.display_value Boolean
<UISpinner>.default Float
UI2DSpinner Properties
<UI2DSpinner>.y_value Float
<UI2DSpinner>.x_scale Float
<UI2DSpinner>.y_scale Float
<UI2DSpinner>.display_label Boolean
<UI2DSpinner>.display_value Boolean
<UI2DSpinner>.x_default Float
<UI2DSpinner>.y_default Float
UIAction Properties
<UIAction>.variables String Array
<UIAction>.references MaxObject Array
<UIAction>.constants String Array
<UIAction>.sub_anim_nums Integer
<UIAction>.description String
UIAction Methods
Executes the script stored in this UIAction.
Adds a constant variable to the UIAction. Corresponds to the "Create" and"Assign Constant" buttons in the Set script dialog.
A constant variable returns the value of the MAXScript expression assigned to it. The expression can be any valid MAXScript expression that evaluates to a value.
The first argument is the name of the constant variable.
The second argument is the expression to be assigned to the variable.
Returns true on success, false on failure.
Sets the constant variable value.
The first argument is either the name of the variable as string, or the index of the variable as integer.
The second argument is the MAXScript expression providing the value.
Returns the value of the expression assigned to the constant variable specified by name or index.
Adds a target variable to the UIAction. Corresponds to the "Create" and "Assign Track" buttons in the Set script dialog.
The first argument is the name of the target variable.
The second argument is the Track value to be assigned to the target variable.
The optional Owner: keyword argument can be used to define the owner of the Track.
Returns true on success, false on failure.
Sets a target variable specified by name or index in the first argument to the target (subAnimtrack) value specified by the second argument. Corresponds to the "Assign Track" buttons in the Set script dialog.
The optional Owner: keyword argument can be used to define the owner of the subAnim track.
Returns true on success, false on failure.
Returns the reference target stored in the target variable specified by name or index in the first argument.
If the optional asObject: keyword argument is supplied and is true, the return value will be converted from a subAnim to a MAXObject.
Opens the track view pick target dialog box.
Adds an object variable to the UIAction. Corresponds to the "Create" and "Assign Controller" buttons in the Set script dialog.
The first argument is the name of the object variable.
The second argument is the Controller to be assigned to the object variable.
Returns true on success, false on failure.
Sets the object variable specified by name or index in the first argument to the controller object value specified by the second argument.
Returns true on success, false on failure.
Returns the reference target stored in the target variable specified by name or index in the first argument.
If the optional asObject: keyword argument is supplied and is true, the return value will be converted from a subAnim to a MAXObject.
Opens the track view pick object dialog box.
Adds a node variable to the UIAction. Corresponds to the "Create" and "Add Node" buttons in the Set Script dialog.
A node variable contains a reference to a scene node. Since the reference is name-independent, changing the name of the node stored in the variable does not affect the functioning of the UIAction.
The first argument is the name of the node variable.
The second argument is the scene node to be assigned to the variable.
Returns true on success, false on failure.
Sets a given node variable to the specified scene node value. Returns true on success, false on failure.
Returns the scene node value stored in the specified node variable.
Opens the track view pick node dialog box.
Deletes the user-defined variable specified by name or index.
Returns true on success, false on failure.
Returns the number of variables defined in the UIAction.
Returns true if the given variable name exists in the UIAction, false if it does not exist.
Returns the name of the indexed variable.
Renames the variable specified by name or index in the first argument to the name specified by the second argument.
Returns true on success, false on failure.
Returns the index of the variable specified by name.
Used internally.
Opens the UIAction set script dialog box.
< Back to main maxscript documentation