c4d.modules.character.CAMorphNode

class c4d.modules.character.CAMorphNode
../../../../_images/character_association_pose.png

Methods Signatures

CAMorphNode.GetUp(self)

Retrieves the parent morph node.

CAMorphNode.GetNext(self)

Retrieves the next morph node.

CAMorphNode.GetPrev(self)

Retrieves the previous morph node.

CAMorphNode.GetDown(self)

Retrieves the first child of the morph node.

CAMorphNode.GetLink(self, tag, morph, doc)

Retrieves the object linked to the morph node.

CAMorphNode.GetInfo(self)

Returns the information on what morph data is stored in the morph node.

CAMorphNode.GetP(self)

Returns the position of the morph node.

CAMorphNode.GetS(self)

Returns the scale of the morph node.

CAMorphNode.GetR(self)

Returns the rotation of the morph node.

CAMorphNode.GetPointCount(self)

Returns the point count.

CAMorphNode.SetPointCount(self, cnt)

Sets the point count.

CAMorphNode.GetPoint(self, index)

Retrieves a point of the morph node.

CAMorphNode.SetPoint(self, index, pnt)

Sets a point of the morph node.

CAMorphNode.GetTangentCount(self)

Returns the tangent count.

CAMorphNode.SetTangentCount(self, cnt)

Sets the tangent count.

CAMorphNode.GetTangent(self, index)

Retrieves a tangent of the morph node.

CAMorphNode.SetTangent(self, index, v)

Sets the tangent at index.

CAMorphNode.GetVertexMapTagCount(self)

Retrieves the number of vertex map tags of the morph node.

CAMorphNode.GetVertexMapCount(self, tindex)

Retrieves the size of the vertex map at tindex.

CAMorphNode.SetVertexMapTagCount(self, tindex, cnt)

Sets the size of the vertex map at tindex.

CAMorphNode.GetVertexMap(self, tindex, index)

Retrieves the vertex map value at index of the tindex vertex map.

CAMorphNode.SetVertexMap(self, tindex, index, v)

Sets the vertex map value at index of the tindex vertex map.

CAMorphNode.GetParamCount(self)

Retrieves the parameter count.

CAMorphNode.SetParamCount(self, cnt)

Sets the parameter count.

CAMorphNode.GetUVTagCount(self)

Retrieves the UV tag count.

CAMorphNode.GetUVCount(self, tindex)

Retrieves the UV coordinates count of the UV tag at tindex.

CAMorphNode.GetUV(self, tindex, index)

Retrieves the UV coordinate index of the tindex UV tag.

CAMorphNode.SetUV(self, tindex, index, a, ...)

Sets the UV coordinate index of the tindex UV tag.

CAMorphNode.SetUVCount(self, tindex, cnt)

Sets the UV coordinates count of the UV tag at tindex.

CAMorphNode.GetParam(self, index)

Returns a parameter.

CAMorphNode.SetParam(self, index, data, id)

Sets a parameter.

CAMorphNode.GetWeightMapTagCount(self)

Retrieves the number of weight map tags.

CAMorphNode.GetWeightMapJointCount(self, tindex)

Retrieves the joint count of the weight tag at tindex.

CAMorphNode.GetWeightMapCount(self, tindex, jindex)

Retrieves the weights count of the joint at jindex of tindex weight tag.

CAMorphNode.SetWeightMapCount(self, tindex, jindex, cnt)

Sets the weights count of the joint at jindex of tindex weight tag.

CAMorphNode.GetWeightMap(self, tindex, jindex, index)

Retrieves the weight at index of jindex joint and tindex weight tag.

CAMorphNode.SetWeightMap(self, tindex, jindex, ...)

Sets the weight at index of jindex joint and tindex weight tag.

CAMorphNode.GetPSDReference(self)

Retrieves the PSD data for a point pose holding the reference pose and providing multiple functions dedicated to PSD behavior.

Methods Documentation

CAMorphNode.GetUp(self)

Retrieves the parent morph node.

Return type

Optional[c4d.modules.character.CAMorphNode]

Returns

The parent node.

CAMorphNode.GetNext(self)

Retrieves the next morph node.

Return type

Optional[c4d.modules.character.CAMorphNode]

Returns

The next node.

CAMorphNode.GetPrev(self)

Retrieves the previous morph node.

Return type

Optional[c4d.modules.character.CAMorphNode]

Returns

The previous node.

CAMorphNode.GetDown(self)

Retrieves the first child of the morph node.

Return type

Optional[c4d.modules.character.CAMorphNode]

Returns

The first child.

Retrieves the object linked to the morph node.

New in version R18.057.

Parameters
Return type

Optional[c4d.BaseList2D]

Returns

The linked object if there is one, or None.

CAMorphNode.GetInfo(self)

Returns the information on what morph data is stored in the morph node.

Return type

int

Returns

The data flags:

CAMORPH_DATA_FLAGS_P

Position morphing.

CAMORPH_DATA_FLAGS_S

Scale morphing.

CAMORPH_DATA_FLAGS_R

HPB rotation morphing.

CAMORPH_DATA_FLAGS_POINTS

Points morphing.

CAMORPH_DATA_FLAGS_TANGENTS

Tangents morphing.

CAMORPH_DATA_FLAGS_VERTEXMAP

Vertex map morphing.

CAMORPH_DATA_FLAGS_WEIGHTMAPS

Joint weights morphing.

CAMORPH_DATA_FLAGS_PARAMS

Parameter morphing.

CAMORPH_DATA_FLAGS_USERDATA

User data morphing.

CAMORPH_DATA_FLAGS_UV

UV coordinate morphing.

CAMORPH_DATA_FLAGS_ASTAG

Set to store the current state of an object into the morph. Stores the morph data as set by the user in the morph tag, otherwise it would mess up the internal data.

CAMORPH_DATA_FLAGS_ALL

All data morphing.

CAMORPH_DATA_FLAGS_NONE

None.

CAMorphNode.GetP(self)

Returns the position of the morph node.

Return type

c4d.Vector

Returns

The position.

CAMorphNode.GetS(self)

Returns the scale of the morph node.

Return type

c4d.Vector

Returns

The scale.

CAMorphNode.GetR(self)

Returns the rotation of the morph node.

Return type

c4d.Vector

Returns

The rotation.

CAMorphNode.GetPointCount(self)

Returns the point count.

See also

CAMorph.SetMode() to retrieve all data.

Return type

int

Returns

The point count.

CAMorphNode.SetPointCount(self, cnt)

Sets the point count.

Parameters

cnt (int) – The point count to be set.

Return type

bool

Returns

True if successful, otherwise False.

CAMorphNode.GetPoint(self, index)

Retrieves a point of the morph node.

See also

CAMorph.SetMode() to retrieve all data.

Parameters

index (int) – The index of the point to get.

Raises

IndexError – If index is out of range : 0<=index<GetPointCount().

Return type

c4d.Vector

Returns

The point at index.

CAMorphNode.SetPoint(self, index, pnt)

Sets a point of the morph node.

Parameters
  • index (int) – The index of the point.

  • pnt (c4d.Vector) – The point to be set.

Raises

IndexError – If index is out of range : 0<=index<GetPointCount().

CAMorphNode.GetTangentCount(self)

Returns the tangent count.

See also

CAMorph.SetMode() to retrieve all data.

Return type

int

Returns

The tangent count.

CAMorphNode.SetTangentCount(self, cnt)

Sets the tangent count.

Parameters

cnt (int) – The tangent count to be set.

Return type

bool

Returns

True if successful, otherwise False.

CAMorphNode.GetTangent(self, index)

Retrieves a tangent of the morph node.

See also

CAMorph.SetMode() to retrieve all data.

Parameters

index (int) – The index of the tangent to get.

Raises

IndexError – If index is out of range : 0<=index<GetTangentCount().

Return type

c4d.Vector

Returns

The tangent.

CAMorphNode.SetTangent(self, index, v)

Sets the tangent at index.

Parameters
  • index (int) – The tangent index.

  • v (c4d.Vector) – The tangent to be set.

Raises

IndexError – If index is out of range : 0<=index<GetTangentCount().

CAMorphNode.GetVertexMapTagCount(self)

Retrieves the number of vertex map tags of the morph node.

See also

CAMorph.SetMode() to retrieve all data.

Return type

int

Returns

The vertex map tag count.

CAMorphNode.GetVertexMapCount(self, tindex)

Retrieves the size of the vertex map at tindex.

See also

CAMorph.SetMode() to retrieve all data.

Parameters

tindex (int) – The vertex map tag index.

Raises

IndexError – If tindex is out of range : 0<=tindex<GetVertexMapTagCount().

Return type

int

Returns

The vertex map count.

CAMorphNode.SetVertexMapTagCount(self, tindex, cnt)

Sets the size of the vertex map at tindex.

Parameters
  • tindex (int) – The vertex map tag index.

  • cnt (int) – The count.

Raises

IndexError – If tindex is out of range : 0<=tindex<GetVertexMapTagCount().

Return type

bool

Returns

True if successful, otherwise False.

CAMorphNode.GetVertexMap(self, tindex, index)

Retrieves the vertex map value at index of the tindex vertex map.

See also

CAMorph.SetMode() to retrieve all data.

Parameters
  • tindex (int) – The vertex map tag index.

  • index (int) – The vertex map index.

Raises
Return type

float

Returns

The vertex map value.

CAMorphNode.SetVertexMap(self, tindex, index, v)

Sets the vertex map value at index of the tindex vertex map.

Parameters
  • tindex (int) – The vertex map tag index.

  • index (int) – The vertex map index.

  • v (float) – The vertex map value to be set.

Raises
CAMorphNode.GetParamCount(self)

Retrieves the parameter count.

See also

CAMorph.SetMode() to retrieve all data.

Return type

int

Returns

The parameter count.

CAMorphNode.SetParamCount(self, cnt)

Sets the parameter count.

Parameters

cnt (int) – The parameter count to be set.

CAMorphNode.GetUVTagCount(self)

Retrieves the UV tag count.

See also

CAMorph.SetMode() to retrieve all data.

Return type

int

Returns

The UV tag count.

CAMorphNode.GetUVCount(self, tindex)

Retrieves the UV coordinates count of the UV tag at tindex.

See also

CAMorph.SetMode() to retrieve all data.

Parameters

tindex (int) – The UV tag index.

Raises

IndexError – If tindex is out of range : 0<=tindex<GetUVTagCount().

Return type

int

Returns

The UV coordinates count.

CAMorphNode.GetUV(self, tindex, index)

Retrieves the UV coordinate index of the tindex UV tag.

See also

CAMorph.SetMode() to retrieve all data.

Parameters
  • tindex (int) – The UV tag index.

  • index (int) – The UV coordinates index.

Raises
  • IndexError – If tindex is out of range : 0<=tindex<GetUVTagCount().

  • IndexError – If index is out of range : 0<=index<GetUVCount().

Return type

Tuple[c4d.Vector, c4d.Vector, c4d.Vector, c4d.Vector`]

Returns

The UV structure.

CAMorphNode.SetUV(self, tindex, index, a, b, c, d)

Sets the UV coordinate index of the tindex UV tag.

Parameters
  • tindex (int) – The UV tag index.

  • index (int) – The UV coordinates index.

  • a (c4d.Vector) – The UVW coordinate for the first point.

  • b (c4d.Vector) – The UVW coordinate for the second point.

  • c (c4d.Vector) – The UVW coordinate for the third point.

  • d (c4d.Vector) – The UVW coordinate for the fourth point.

Raises
  • IndexError – If tindex is out of range : 0<=tindex<GetUVTagCount().

  • IndexError – If index is out of range : 0<=index<GetUVCount().

CAMorphNode.SetUVCount(self, tindex, cnt)

Sets the UV coordinates count of the UV tag at tindex.

Parameters
  • tindex (int) – The UV tag index.

  • cnt (int) – The new UV coordinates count.

Raises

IndexError – If tindex is out of range : 0<=tindex<GetUVTagCount().

Return type

bool

Returns

True if successful, otherwise False.

CAMorphNode.GetParam(self, index)

Returns a parameter.

See also

CAMorph.SetMode() to retrieve all data.

Parameters

index (int) – The parameter index.

Raises

IndexError – If index is out of range : 0<=index<GetParamCount().

Return type

dict{data: any, id: DescID}

Returns

The parameter.

CAMorphNode.SetParam(self, index, data, id)

Sets a parameter.

Parameters
  • index (int) – The parameter index.

  • data (any) – The data to be set.

  • id (c4d.DescID) – The id.

Raises

IndexError – If index is out of range : 0<=index<GetParamCount().

CAMorphNode.GetWeightMapTagCount(self)

Retrieves the number of weight map tags.

See also

CAMorph.SetMode() to retrieve all data.

Return type

int

Returns

The weight map tag count.

CAMorphNode.GetWeightMapJointCount(self, tindex)

Retrieves the joint count of the weight tag at tindex.

See also

CAMorph.SetMode() to retrieve all data.

Parameters

tindex (int.) – The weight tag index.

Raises

IndexError – If tindex is out of range : 0<=tindex<GetWeightMapTagCount().

Return type

int

Returns

The weight map joint count.

CAMorphNode.GetWeightMapCount(self, tindex, jindex)

Retrieves the weights count of the joint at jindex of tindex weight tag.

See also

CAMorph.SetMode() to retrieve all data.

Parameters
  • tindex (int.) – The weight tag index.

  • jindex (int) – The joint index.

Raises
Return type

int

Returns

The weight count of the specified joint.

CAMorphNode.SetWeightMapCount(self, tindex, jindex, cnt)

Sets the weights count of the joint at jindex of tindex weight tag.

Parameters
  • tindex (int.) – The weight tag index.

  • jindex (int) – The joint index.

  • cnt (int) – The new weight count.

Raises
Return type

bool

Returns

True if successful, otherwise False.

CAMorphNode.GetWeightMap(self, tindex, jindex, index)

Retrieves the weight at index of jindex joint and tindex weight tag.

See also

CAMorph.SetMode() to retrieve all data.

Parameters
  • tindex (int.) – The weight tag index.

  • jindex (int) – The joint index.

  • index (int) – The weight index.

Raises
Return type

float

Returns

The weight value.

CAMorphNode.SetWeightMap(self, tindex, jindex, index, v)

Sets the weight at index of jindex joint and tindex weight tag.

Parameters
  • tindex (int.) – The weight tag index.

  • jindex (int) – The joint index.

  • index (int) – The weight index.

  • v (float) – The new weight value.

Raises
CAMorphNode.GetPSDReference(self)

Retrieves the PSD data for a point pose holding the reference pose and providing multiple functions dedicated to PSD behavior.

New in version R19.

See also

CAMorph.SetMode() to retrieve all data.

Return type

c4d.modules.character.CAReferencePSD

Returns

The PSD referential for the morph node.