Kinematics
- class Axis
Base class:
KinematicNode- property origin_point
The initial extremity of the axis.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property end_point
The final extremity of the axis.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property min_angle
The minimal angle value (in degrees).
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property max_angle
The maximal angle value (in degrees).
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- add_surface(surface)
Add the given
Surfaceto the current kinematic node.- Parameters
surface (Surface) -- The
Surfaceto add into the kinematic node.- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- create_axis(name)
Create an
Axisin the current KinematicNode.- Parameters
name (str) -- Name of the axis.
- Returns
The created axis.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- create_vector(name)
Create a
Vectorin the current KinematicNode.- Parameters
name (str) -- Name of the vector.
- Returns
The created vector.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- create_null(name)
Create a
Nullin the current KinematicNode.- Parameters
name (str) -- Name of the null.
- Returns
The created null.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- list_surfaces()
List the surfaces of this kinematic node.
- duplicate()
Duplicate this axis node with its children.
- Returns
The duplicated axis.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
AxisType
Constraint
ConstraintType
FollowPathConstraint
- class FollowPathConstraint
Base class:
Constraint- property target
The constraint Bezier path target.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property follow_curve
Whether the constraint should follow the curve or not.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property aim_axis
The aim axis for this constraint.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property up_axis
The up axis for this constraint.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property curvilinear_abscissa
The position along the path in percentage.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
KinematicNode
- class KinematicNode
Base class:
SceneObject- property name
The name of the scene object.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property type
The type of the scene object.
- Type
SceneObjectType, read-only
- property parent_object
The parent object of this object or
Noneif no parent.- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If trying to move the object into one of its children, trying to move the object to another model, trying to move the object to itself or trying to move the object to an object which is not a
KinematicNode(that is anAxis, aNullor aVector).
- property visible
The scene object visibility.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property locked
The scene object lock state.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property selected
Whether the scene object is selected.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property color
The shaper color of the scene object.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property translation
The global translation of the scene object, in meters.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property rotation
The global rotation of the scene object, in degrees.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property scale
The global scale of the scene object.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If trying to set a negative scale or trying to scale a Kinematics object.
- property pivot_to_world_translation
The translation from pivot point to global position, in meters.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property pivot_to_world_rotation
The rotation from pivot point to global orientation, in degrees.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property local_to_pivot_translation
The translation from local point to pivot position, in meters.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property local_to_pivot_rotation
The rotation from local point to pivot orientation, in degrees.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property pivot_to_parent_translation
The translation from pivot point to parent position, in meters
Note
If the object does not have a parent, it returns the global translation.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property pivot_to_parent_rotation
The rotation from pivot point to parent orientation, in degrees
Note
If the object does not have a parent, it returns the global rotation.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property local_to_parent_translation
The translation from local point to parent position, in meters.
- Type
Vector3, read-only
- property local_to_parent_rotation
The rotation from local point to parent orientation, in degrees.
- Type
Vector3, read-only
- list_child_objects(recursive=True)
List the child kinematic object of this objects.
- has_tag(tag)
Whether the tag is assigned to the scene object.
- list_tags()
List all the tags assigned to the scene object.
- add_tag(tag)
Create a new tag and assign to the scene object.
- Parameters
tag (str) -- Name of the tag.
- Returns
Whether the tag was added or not.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- remove_tag(tag)
Remove tag from the scene object.
- Parameters
tag (str) -- Name of the tag.
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- list_constraints()
List all the constraints applied to the scene object.
- Returns
The list of constraints applied to the scene object.
- Return type
- add_constraint(type)
Create a new constraint and apply to the scene object. You either have to manually input the transformation of the object or use constraint bu both cannot be used at the same time.
- Parameters
type (ConstraintType) -- The type of constraint to create.
- Returns
The newly created constraint.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If trying to add a constraint which is identical to the already added constraints.
- remove_constraint(constraint)
Remove constraint from the scene object.
- Parameters
constraint (Constraint) -- The
Constraintto be removed.- Raises
ReadOnlyError -- If
Databaseis in read only mode.ValueError -- If the given constraint is not applied to this object.
- remove()
Delete this scene object.
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- add_surface(surface)
Add the given
Surfaceto the current kinematic node.- Parameters
surface (Surface) -- The
Surfaceto add into the kinematic node.- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- create_axis(name)
Create an
Axisin the current KinematicNode.- Parameters
name (str) -- Name of the axis.
- Returns
The created axis.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- create_vector(name)
Create a
Vectorin the current KinematicNode.- Parameters
name (str) -- Name of the vector.
- Returns
The created vector.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- create_null(name)
Create a
Nullin the current KinematicNode.- Parameters
name (str) -- Name of the null.
- Returns
The created null.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
LookAtConstraint
- class LookAtConstraint
Base class:
Constraint- property target
The constraint copy source target.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property aim_axis
The aim axis for this constraint.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property up_axis
The up axis for this constraint.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
Null
- class Null
Base class:
KinematicNode- property position
The position of the null.
Note
This coincides with the property translation from the inherited class SceneObject.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- add_surface(surface)
Add the given
Surfaceto the current kinematic node.- Parameters
surface (Surface) -- The
Surfaceto add into the kinematic node.- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- create_axis(name)
Create an
Axisin the current KinematicNode.- Parameters
name (str) -- Name of the axis.
- Returns
The created axis.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- create_vector(name)
Create a
Vectorin the current KinematicNode.- Parameters
name (str) -- Name of the vector.
- Returns
The created vector.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- create_null(name)
Create a
Nullin the current KinematicNode.- Parameters
name (str) -- Name of the null.
- Returns
The created null.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- list_surfaces()
List the surfaces of this kinematic node.
- duplicate()
Duplicate this null node with its children.
- Returns
The duplicated null.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
OrientationConstraint
- class OrientationConstraint
Base class:
Constraint- property target
The constraint copy source target.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property offset
The orientation offset.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
PositionConstraint
- class PositionConstraint
Base class:
Constraint- property target
The constraint copy source target.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property offset
The position offset.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
Vector
- class Vector
Base class:
KinematicNode- property origin_point
The initial extremity of the vector.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property end_point
The final extremity of the vector.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property min_distance
The minimal distance value.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- property max_distance
The maximal distance value.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- add_surface(surface)
Add the given
Surfaceto the current kinematic node.- Parameters
surface (Surface) -- The
Surfaceto add into the kinematic node.- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- create_axis(name)
Create an
Axisin the current KinematicNode.- Parameters
name (str) -- Name of the axis.
- Returns
The created axis.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- create_vector(name)
Create a
Vectorin the current KinematicNode.- Parameters
name (str) -- Name of the vector.
- Returns
The created vector.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- create_null(name)
Create a
Nullin the current KinematicNode.- Parameters
name (str) -- Name of the null.
- Returns
The created null.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
- list_surfaces()
List the surfaces of this kinematic node.
- duplicate()
Duplicate this vector node with its children.
- Returns
The duplicated vector.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.