c4d.modules.character.MTCharacterBodyPart¶
-
class
c4d.modules.character.
MTCharacterBodyPart
¶ Represents a body part from a Character Definition.
Retrieved from
MTCharacterDefinitionTag.GetRootBodyPart()
.New in version S24.
Methods Signatures
Inserts the given child. |
|
Deletes the child at the given index. |
|
Gets the child at the given index. |
|
Gets the child count. |
|
Gets the parent if any. |
|
Sets the parameter for the body part. |
|
Gets the parameters structure. |
Methods Documentation
-
MTCharacterBodyPart.
InsertChild
(self, child)¶ Inserts the given child.
- Parameters
child (
c4d.modules.character.MTCharacterBodyPart
) – Child to insert.- Returns
True if successful, otherwise False.
- Return type
bool
-
MTCharacterBodyPart.
DeleteChild
(self, index)¶ Deletes the child at the given index.
- Parameters
index (int) – Child index.
- Returns
True if successful, otherwise False.
- Return type
bool
-
MTCharacterBodyPart.
GetChild
(self, index)¶ Gets the child at the given index.
- Parameters
index (int) – Child index.
- Returns
The child body part
- Return type
-
MTCharacterBodyPart.
GetChildCount
(self)¶ Gets the child count.
- Returns
The child count.
- Return type
int
-
MTCharacterBodyPart.
GetParent
(self)¶ Gets the parent if any.
- Returns
Parent.
- Return type
-
MTCharacterBodyPart.
SetParameters
(self, param)¶ Sets the parameter for the body part.
- Parameters
param (
c4d.modules.character.MTBodyPartParameters
) – Parameters.
-
MTCharacterBodyPart.
GetParameters
(self)¶ Gets the parameters structure.
- Returns
The body part parameters.
- Return type