Share

root_module

A rigging module defining one root control and one root joint. This module requires two pins:

  • control: The rest transform of the root control.
  • joint: The rest transform of the root joint.

Inputs

inputs

The inputs struct of this module, containing all input setup and input animation data to drive this module. After you have defined the default pins, expose this port to the host application by connecting it to the graph's input node (going upward through any parent compounds as necessary).

  • setup.pins: An array of pins. Pins are helpers transforms acting as guides, usually used to define the rest transformation of controls and joints. Default pins for this port can be set in the Parameter Editor.
  • setup.custom: An object containing any custom data setup data to be used within the user_setup.
  • animation.control_operator_matrices: An array of operator matrices to drive the control transforms. Operators are automatically applied to transforms before the user_animation solver.
  • animation.joint_operator_matrices: An array of operator matrices to drive the joint transforms. Operators are automatically applied to transforms before the user_animation solver.
  • animation.attribute_data: Arrays of data for the control attributes. Attributes generated by this module are created on the host application's controls from the outputs. Their values are connected back to the inputs in order to be used within the user_animation solver.
  • animation.custom: An object containing any custom data setup data to be used within the user_animation solver.

General

The parameters shared by all rigging modules.

name

Defines the name of this module. This is primarily used to identify this module, but can also be used as a prefix for control and joint names. The name is also automatically added as the first tag in the tag list of all entities produced by this module.

state

The state of this module's control and joint transforms.

  • Animation: Sets the transforms to their full animation states. Transforms are affected by movement from parent modules, by their operators, and animation solver.
  • Rest (Relative): Sets the transforms to their relative rest states. Transforms are affected by movement from parent modules, but not by their operators, nor by the animation solver.
  • Rest (Absolute): Sets the transforms to their absolute rest states. Transforms are neither affected by movement from parent modules, their operators, nor by the animation solver.

Diagnostics

Displays this module's resulting pins, controls, joints and transforms upon enabling the terminal diagnostic flag.

display_pins

If enabled, displays the pins as red points.

display_controls

If enabled, displays the control shapes as either strands or meshes, depending on the specified control shapes.

display_joints

If enabled, displays the joints as a mix of points and strands.

display_transforms

If enabled, displays the transforms of the enabled diagnostic entities. For example, if display_pins is enabled but not display_controls and display_joints, only the transforms of the pins will be displayed.

axes_shape

The type of geometry shader to apply on the resulting transform axes.

  • Wire: Displays the strands as thin lines.
  • Ribbon: Displays the strands as strips, with a width relative to the scales of the transforms, and the axes_scale, arrowhead_size_ratio, and stem_width_ratio values.
  • Tube: Displays the strands as thick tubes, with a radius relative to the scales of the transforms, and the axes_scale, arrowhead_size_ratio, and stem_width_ratio values.

axes_scale

A multiplier to increase or decrease the scale of the transform axes to display.

Evaluation

profile_evaluation

If enabled, profiles this module, as well as the individual setup and animation computation. The result of the profiling can be seen in the host application's profiler.

edit_mode

Controls whether the module operates in an "editing" or "performance-optimized" mode by managing the evaluation of both the user_setup and the lookup computations of find_* nodes in the user_animation. This should always be enabled while editing the inside of this module or while tweaking parameters that directly affect the setup. Once editing is complete, it is highly recommended to disable this mode to maximize performance.

  • When enabled, The user_setup of this module will be evaluated every time the graph evaluates, ensuring that changes to the module's setup are applied immediately. The lookup computation of the find_* nodes within the user_animation area will be forced to update every time the graph evaluates.

  • When disabled, The result of the setup will be cached and only updated if the inputs setup data is dirty or if any parent module's setup is dirty. The result of the lookup will also be cached and reused to retrieve the target data, optimizing performance by avoiding unnecessary re-evaluations. It will only be updated if this module's setup becomes dirty. Note that you can still force the lookup computation of individual find_* nodes by enabling their force_lookup_evaluation parameters.

Setup

The parameters affecting the user_setup area of this module. Make sure that edit_mode is enabled before tweaking these parameters, otherwise the setup will not be re-evaluated until something forces it to recompute.

create_control

If enabled, creates the root control.

create_joint

If enabled, creates the root joint.

Naming

Defines the naming patterns for generating entity names. You can use tokens to automatically derive parts of a name from the module context or entity index.

  • <module_name>: Replaced with the current module's name.
  • <index>: Replaced with the zero-based index of the entity (e.g., 0, 1, 2…). Only applies when multiple related entities are created.
  • <number>: Replaced with the one-based index of the entity (e.g., 1, 2, 3…). Only applies when multiple related entities are created.

control_name

The full name of the root control. If this is not specified, this module's name will be used instead.

joint_name

The full name of the root joint. If this is not specified, this module's name will be used instead.

Transform Settings

rotation_order

The rotation order of the root control and joint transform in the host application.

lock_translation

Locks the X, Y and Z translation of the root control and joint transform in the host application.

lock_rotation

Locks the X, Y and Z rotation of the root control and joint transform in the host application.

lock_scale

Locks the X, Y and Z scale of the root control and joint transform in the host application.

lock_shear

Locks the X, Y and Z shear of the root control and joint transform in the host application.

lock_joint

If enabled, completely locks of the root joint transform in the host application.

Display

control_shape

The shape of the root control.

control_color

The color of the root control shape.

control_translation

The relative translation of the root control shape.

control_rotation

The relative rotation of the root control shape, in degrees.

control_scale

The relative scale of the root control shape.

joint_color

The color of the root joint.

joint_radius

The radius of the root joint.

Outputs

outputs

The outputs struct of this module, containing all the data generated by this module. This is expected to be exposed to the host application.

Was this information helpful?