unreal.RigControl
¶
- class unreal.RigControl(name='None', index=- 1, control_type=RigControlType.TRANSFORM, display_name='None', parent_name='None', parent_index=- 1, space_name='None', space_index=- 1, offset_transform=[[0.0, 0.0, 0.0], [0.0, 0.0, 0.0], [1.0, 1.0, 1.0]], initial_value=[], value=[], primary_axis=RigControlAxis.X, animatable=True, limit_translation=False, limit_rotation=False, limit_scale=False, draw_limits=True, minimum_value=[], maximum_value=[], gizmo_enabled=True, gizmo_visible=True, gizmo_name='Gizmo', gizmo_transform=[[0.0, 0.0, 0.0], [0.0, 0.0, 0.0], [1.0, 1.0, 1.0]], gizmo_color=[1.0, 0.0, 0.0, 1.0], is_transient_control=False, control_enum=None)¶
Bases:
unreal.RigElement
Rig Control
C++ Source:
Plugin: ControlRig
Module: ControlRig
File: RigControlHierarchy.h
Editor Properties: (see get_editor_property/set_editor_property)
animatable
(bool): [Read-Write] If the control is animatable in sequencercontrol_enum
(Enum): [Read-Write] If the control is transient and only visible in the control rig editorcontrol_type
(RigControlType): [Read-Write] Control Typedisplay_name
(Name): [Read-Write] Display Namedraw_limits
(bool): [Read-Write] True if the limits should be drawn in debug.gizmo_color
(LinearColor): [Read-Write] Gizmo Colorgizmo_enabled
(bool): [Read-Write] Set to true if the gizmo is enabled in 3dgizmo_name
(Name): [Read-Write] This is optional UI setting - this doesn’t mean this is always used, but it is optional for manipulation layer to use thisgizmo_transform
(Transform): [Read-Write] Gizmo Transformgizmo_visible
(bool): [Read-Write] Set to true if the gizmo is currently visible in 3dindex
(int32): [Read-Only] Indexinitial_value
(RigControlValue): [Read-Only] The value that a control is reset to during begin play or when the control rig is instantiated.is_transient_control
(bool): [Read-Write] If the control is transient and only visible in the control rig editorlimit_rotation
(bool): [Read-Write] True if the control has to obey rotation limits.limit_scale
(bool): [Read-Write] True if the control has to obey scale limits.limit_translation
(bool): [Read-Write] True if the control has to obey translation limits.maximum_value
(RigControlValue): [Read-Write] The maximum limit of the control’s valueminimum_value
(RigControlValue): [Read-Write] The minimum limit of the control’s valuename
(Name): [Read-Write] Nameoffset_transform
(Transform): [Read-Write] Used to offset a control in global space. This can be useful to offset a float control by rotating it or translating it.parent_index
(int32): [Read-Write] Parent Indexparent_name
(Name): [Read-Only] Parent Nameprimary_axis
(RigControlAxis): [Read-Write] the primary axis to use for float controlsspace_index
(int32): [Read-Write] Space Indexspace_name
(Name): [Read-Only] Space Namevalue
(RigControlValue): [Read-Only] The current value of the control.
- property control_enum¶
[Read-Only] If the control is transient and only visible in the control rig editor
- Type
(Enum)
- property control_type¶
[Read-Write] Control Type
- Type
- property gizmo_color¶
[Read-Write] Gizmo Color
- Type
- property gizmo_name¶
[Read-Write] This is optional UI setting - this doesn’t mean this is always used, but it is optional for manipulation layer to use this
- Type
(Name)
- property gizmo_visible¶
[Read-Write] Set to true if the gizmo is currently visible in 3d
- Type
(bool)
- property initial_value¶
[Read-Only] The value that a control is reset to during begin play or when the control rig is instantiated.
- Type
- property is_transient_control¶
[Read-Write] If the control is transient and only visible in the control rig editor
- Type
(bool)
- property limit_translation¶
[Read-Write] True if the control has to obey translation limits.
- Type
(bool)
- property maximum_value¶
[Read-Write] The maximum limit of the control’s value
- Type
- property minimum_value¶
[Read-Write] The minimum limit of the control’s value
- Type
- property offset_transform¶
[Read-Write] Used to offset a control in global space. This can be useful to offset a float control by rotating it or translating it.
- Type
- property parent_index¶
[Read-Only] Parent Index
- Type
(int32)
- property primary_axis¶
[Read-Write] the primary axis to use for float controls
- Type
- property space_index¶
[Read-Only] Space Index
- Type
(int32)
- property value¶
[Read-Only] The current value of the control.
- Type