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

MTCharacterBodyPart.InsertChild()

Inserts the given child.

MTCharacterBodyPart.DeleteChild()

Deletes the child at the given index.

MTCharacterBodyPart.GetChild()

Gets the child at the given index.

MTCharacterBodyPart.GetChildCount()

Gets the child count.

MTCharacterBodyPart.GetParent()

Gets the parent if any.

MTCharacterBodyPart.SetParameters()

Sets the parameter for the body part.

MTCharacterBodyPart.GetParameters()

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

c4d.modules.character.MTCharacterBodyPart

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

c4d.modules.character.MTCharacterBodyPart

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

c4d.modules.character.MTBodyPartParameters