c4d.modules.character.MTCharacterBodyPart

class c4d.modules.character.MTCharacterBodyPart

Represents a body part from a Character Definition.

Retrieved from MTCharacterDefinitionTag.GetRootBodyPart().

New in version R24.

Overview

Hierarchy Management

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.InsertChild()

Inserts the given child.

Parameter Management

MTCharacterBodyPart.GetParameters()

Gets the parameters structure.

MTCharacterBodyPart.SetParameters()

Sets the parameter for the body part.

Members

Hierarchy Management

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.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

Parameter Management

MTCharacterBodyPart.GetParameters(self)

Gets the parameters structure.

Returns

The body part parameters.

Return type

c4d.modules.character.MTBodyPartParameters

MTCharacterBodyPart.SetParameters(self, param)

Sets the parameter for the body part.

Parameters

param (c4d.modules.character.MTBodyPartParameters) – Parameters.