unreal.ConstraintsScriptingLibrary
¶
- class unreal.ConstraintsScriptingLibrary(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
BlueprintFunctionLibrary
This is a set of helper functions to access various parts of the Sequencer and Control Rig API via Python and Blueprints.
C++ Source:
Module: Constraints
File: ConstraintsScripting.h
- classmethod add_constraint(world, parent_handle, child_handle, constraint, maintain_offset) bool ¶
Add Constraint
- Parameters:
world (World) –
parent_handle (TransformableHandle) –
child_handle (TransformableHandle) –
constraint (TickableTransformConstraint) –
maintain_offset (bool) –
- Return type:
- classmethod create_from_type(world, type) TickableTransformConstraint ¶
Create Constraint based on the specified type.
- Parameters:
world (World) – World to create the constraint
type (TransformConstraintType) – The type of constraint
- Returns:
return The constraint object
- Return type:
- classmethod create_transformable_component_handle(world, scene_component, socket_name) TransformableComponentHandle ¶
Create the transformable handle that deals with getting and setting transforms on this scene component
- Parameters:
world (World) –
scene_component (SceneComponent) – World to create the constraint
socket_name (Name) – Optional name of the socket to get the transform
- Returns:
returns the handle for this scene component
- Return type:
- classmethod create_transformable_handle(world, object, attachment_name='None') TransformableHandle ¶
Create the transformable handle that deals with getting and setting transforms on this object
- Parameters:
- Returns:
returns the handle for this scene component
- Return type:
- classmethod get_constraints_array(world) Array[TickableConstraint] ¶
Get a copy of the constraints in the current world
- Parameters:
world (World) – World we are in
- Returns:
Copy of the constraints in the level
- Return type:
- classmethod remove_this_constraint(world, tickable_constraint) bool ¶
Remove specified constraint
- Parameters:
world (World) – World to remove the constraint
tickable_constraint (TickableConstraint) – Constraint to remove
- Returns:
return If constraint removed correctly
- Return type: