c4d.modules.character.MTCharacterDefinitionTag¶
-
class
c4d.modules.character.
MTCharacterDefinitionTag
¶ Represents the Character Definition tag.
New in version S24.
Methods Signatures
Automatic body part extraction for the skeleton. |
|
Gets current skeleton pose and set it as rest pose. |
|
Applies the current rest pose. |
|
Clears the current rest pose. |
|
Creates a solver and assign to the object owner. |
|
Returns a copy of the body part hierarchy. |
|
|
Sets the body part hierarchy. |
Inheritance
Parent Class:
Methods Documentation
-
MTCharacterDefinitionTag.
ExtractSkeleton
(self, undo)¶ Automatic body part extraction for the skeleton.
Warning
This should be called only in the main thread.
- Parameters
undo (bool) – Add Character definition to the undo stack before any changes.
- Returns
True if successful, otherwise False.
- Return type
bool
-
MTCharacterDefinitionTag.
ExtractRestPose
(self, undo)¶ Gets current skeleton pose and set it as rest pose.
Warning
This should be called only in the main thread.
- Parameters
undo (bool) – Add Character definition to the undo stack before any changes.
- Returns
True if successful, otherwise False.
- Return type
bool
-
MTCharacterDefinitionTag.
ApplyRestPose
(self, undo)¶ Applies the current rest pose.
Warning
This should be called only in the main thread.
- Parameters
undo (bool) – Add Character definition to the undo stack before any changes.
- Returns
True if successful, otherwise False.
- Return type
bool
-
MTCharacterDefinitionTag.
ClearRestPose
(self, undo)¶ Clears the current rest pose.
Warning
This should be called only in the main thread.
- Parameters
undo (bool) – Add Character definition to the undo stack before any changes.
- Returns
True if successful, otherwise False.
- Return type
bool
-
MTCharacterDefinitionTag.
CreateSolver
(self, undo)¶ Creates a solver and assign to the object owner.
Warning
This should be called only in the main thread.
- Parameters
undo (bool) – Add Character definition to the undo stack before any changes.
- Returns
The new created MTCharacterMotionTransferTag.
- Return type
-
MTCharacterDefinitionTag.
GetRootBodyPart
(self)¶ Returns a copy of the body part hierarchy.
- Returns
The MTCharacterBodyPart.
- Return type
-
MTCharacterDefinitionTag.
SetRootBodyPart
(self, rootBodyPart)¶ Sets the body part hierarchy.
- Parameters
rootBodyPart (
c4d.modules.character.MTCharacterBodyPart
) – Represent the BodyPart hierarchy.- Returns
True if successful, otherwise False.
- Return type
bool