Share

constraint_scope

Visualize the constraints applied to a rigid body simulation. Constraints will be shown as arrows between their pivots.

Inputs

instances

The rigid body instances with constraints.

Coloring

coloring_mode

How to color the constraints

  • Active: Color the constraints based on how close they are to breaking, requires the scope to be after the simulation.
  • Strength: Color the constraints based on their strength

strength_start

The lower value to clamp strength to for coloring when coloring_mode is Strength.

strength_end

The upper value to clamp strength to for coloring when coloring_mode is Strength.

fcurve

Map the coloring value with fcurve before blending between the different magnitude_color.

magnitude_color0

The color used for values of the fcurve that are less than or equal 0, it will be blended with the neighboring colors.

magnitude_color1

The color used for values of the fcurve that are equal to 0.25, it will be linearly blended with the neighboring colors.

magnitude_color2

The color used for values of the fcurve that are equal to 0.5, it will be linearly blended with the neighboring colors.

magnitude_color3

The color used for values of the fcurve that are equal to 0.75, it will be linearly blended with the neighboring colors.

magnitude_color4

The color used for values of the fcurve that are greater or equal to 1, it will be linearly blended with the neighboring colors.

disabled_color

The color used for constraints which are disabled.

Grid

grid

If set the instances will be moved to the grid.

translate

Use to translate the position of the grid.

normal_direction

The normal direction of the grid. This is used to determine the orientation of the grid.

arrow_to_world_space

If set to true, arrows between the grid and the world space will be displayed. If set to false, the arrows will not be displayed.

arrow_thickness_multiplier

Multiplier to change the thickness of the arrows.

Display

display_point_ids

If set the indices of the points will be displayed.

display_constraint_ids

If set the indices of the constraints will be displayed.

display_frame

If set the coordinate frame arrows will the displayed for constraints with frames. Currently this is only for glue constraints.

arrowhead_size

Multiplier to change the size of the arrow heads.

Constraint Tag

point_to_point_tag

Interpreted tag port to select point to point constraints to display. See interpret_auto_port_as_component_tag for a description of all the supported types and their meanings. For example pass in the string enabled to show only constraints that are active in the simulation, and !enabled to show only constraints that have broken.

point_to_world_tag

Interpreted tag port to select point to world constraints to display. See interpret_auto_port_as_component_tag for a description of all the supported types and their meanings. For example pass in the string enabled to show only constraints that are active in the simulation, and !enabled to show only constraints that have broken.

glue_tag

Interpreted tag port to select glue constraints to display. See interpret_auto_port_as_component_tag for a description of all the supported types and their meanings. For example pass in the string enabled to show only constraints that are active in the simulation, and !enabled to show only constraints that have broken.

Was this information helpful?