c4d.modules.character.CAMorphNode

../../../../_images/association_pose1.png

Definition

class c4d.modules.character. CAMorphNode

Members

CAMorphNode. GetUp ( )

Get the parent morph node.

Return type: c4d.modules.character.CAMorphNode
Returns: The node.
CAMorphNode. GetNext ( )

Get the next morph node.

Return type: c4d.modules.character.CAMorphNode
Returns: The node.
CAMorphNode. GetPrev ( )

Get the previous morph node.

Return type: c4d.modules.character.CAMorphNode
Returns: The node.
CAMorphNode. GetDown ( )

Get the first child of the morph node.

Return type: c4d.modules.character.CAMorphNode
Returns: The node.

New in version R18.057.

Retrieves the object linked to the morph node.

Parameters:
Return type:

c4d.BaseList2D

Returns:

The linked object if there is one, or None .

CAMorphNode. GetInfo ( )

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

Return type: int
Returns: The data flags:
CAMORPH_DATA_FLAGS_P Position.
CAMORPH_DATA_FLAGS_S Scale.
CAMORPH_DATA_FLAGS_R HPB rotation.
CAMORPH_DATA_FLAGS_POINTS Points.
CAMORPH_DATA_FLAGS_TANGENTS Tangents.
CAMORPH_DATA_FLAGS_VERTEXMAP Vertex map.
CAMORPH_DATA_FLAGS_WEIGHTMAPS Joint weights.
CAMORPH_DATA_FLAGS_PARAMS Parameter.
CAMORPH_DATA_FLAGS_USERDATA User data.
CAMORPH_DATA_FLAGS_UV UV.
CAMORPH_DATA_FLAGS_ASTAG As tag.
CAMORPH_DATA_FLAGS_ALL All.
CAMORPH_DATA_FLAGS_0 No flags.
CAMorphNode. GetP ( )

Get the position of the morph node.

Return type: c4d.Vector
Returns: The position.
CAMorphNode. GetS ( )

Get the scale of the morph node.

Return type: c4d.Vector
Returns: The scale.
CAMorphNode. GetR ( )

Get the rotation of the morph node.

Return type: c4d.Vector
Returns: The rotation.
CAMorphNode. GetPointCount ( )

Get the point count.

Return type: int
Returns: The count.
CAMorphNode. SetPointCount ( cnt )

Set the point count.

Parameters: cnt ( int ) – The count.
Return type: bool
Returns: True on success, otherwise False .
CAMorphNode. GetPoint ( index )

Get the point of the morph node.

Parameters: index ( int ) – The index of the point.
Raises: IndexError – If the point index is out of range : 0<=index< GetPointCount() .
Return type: c4d.Vector
Returns: The point.
CAMorphNode. SetPoint ( index , pnt )

Get the point of the morph node.

Parameters:
  • index ( int ) – The index of the point.
  • pnt ( c4d.Vector ) – The point.
Raises:

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

CAMorphNode. GetTangentCount ( )

Get the tangent count.

Return type: int
Returns: The count.
CAMorphNode. SetTangentCount ( cnt )

Set the tangent count.

Parameters: cnt ( int ) – The count.
Return type: bool
Returns: True on success, otherwise False .
CAMorphNode. GetTangent ( index )

Get the tangent of the morph node.

Parameters: index ( int ) – The index of the tangent.
Raises: IndexError – If the tangent index is out of range : 0<=index< GetTangentCount() .
Return type: c4d.Vector
Returns: The tangent.
CAMorphNode. SetTangent ( index , v )

Get the tangent of the morph node.

Parameters:
  • index ( int ) – The index of the tangent.
  • v ( c4d.Vector ) – The tangent.
Raises:

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

CAMorphNode. GetVertexMapTagCount ( )

Get the vertex map tag count.

Return type: int
Returns: The count.
CAMorphNode. GetVertexMapCount ( )

Get the vertex map count.

Return type: int
Returns: The count.
CAMorphNode. SetVertexMapTagCount ( tindex , cnt )

Set the vertex map tag count.

Parameters:
  • tindex ( int ) – The index.
  • cnt ( int ) – The count.
Return type:

bool

Returns:

True on success, otherwise False .

CAMorphNode. GetVertexMap ( tindex , index )

Get the vertex map.

Parameters:
  • tindex ( int ) – The index.
  • index ( int ) – The index.
Return type:

float

Returns:

The map.

CAMorphNode. SetVertexMap ( tindex , index , v )

Set the vertex map.

Parameters:
  • tindex ( int ) – The index.
  • index ( int ) – The index.
  • v ( float ) – The value.
CAMorphNode. GetParamCount ( )

Get the param count.

Return type: int
Returns: The count.
CAMorphNode. SetParamCount ( cnt )

Set the param count.

Parameters: cnt ( int ) – The count.
CAMorphNode. GetUVTagCount ( )

Get the UV tag count.

Return type: int
Returns: The count.
CAMorphNode. GetUVCount ( tindex , cnt )

Set the UV count.

Parameters:
  • tindex ( int ) – The index.
  • cnt ( int ) – The count.
Return type:

bool

Returns:

True on success, otherwise False .

CAMorphNode. GetUV ( tindex , index )

Get the UV.

Parameters:
  • tindex ( int ) – The index.
  • index ( int ) – The count.
Return type:

tuple( Vector , Vector , Vector , Vector )

Returns:

The UV structure.

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

Set the UV.

Parameters:
  • tindex ( int ) – The index.
  • index ( int ) – The count.
  • a ( int ) – The first polygon.
  • b ( int ) – The second polygon.
  • c ( int ) – The third polygon.
  • d ( int ) – The fourth polygon.
CAMorphNode. SetUVCount ( tindex , cnt )

Set the UV count.

Parameters:
  • tindex ( int ) – The index.
  • cnt ( int ) – The count.
CAMorphNode. GetParam ( index )

Return the parameter.

Parameters: index ( int ) – The index.
Return type: dict{ data : any, id : DescID }
Returns: The parameter.
CAMorphNode. SetParam ( index , data , id )

Set the parameter.

Parameters:
  • index ( int ) – The index.
  • data ( any ) – The data.
  • id ( c4d.DescID ) – The id.
CAMorphNode. GetWeightMapTagCount ( )

Get the weight map tag count.

Return type: int
Returns: The count.
CAMorphNode. GetWeightMapJointCount ( )

Get the weight map joint count.

Return type: int
Returns: The count.
CAMorphNode. GetWeightMapCount ( )

Get the weight map count

Return type: int
Returns: The count.
CAMorphNode. SetWeightMapCount ( tindex , jindex , cnt )

Get the weight map count

Parameters:
  • tindex ( int. ) – The index.
  • jindex – The index.
  • cnt ( int ) – The count.
Return type:

bool

Returns:

True on success, otherwise False .

CAMorphNode. GetWeightMap ( tindex , jindex , index )

Get the weight map count

Parameters:
  • tindex ( int. ) – The index.
  • jindex – The index.
  • index ( int ) – The index.
Return type:

float

Returns:

The weight map.

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

Get the weight map count

Parameters:
  • tindex ( int. ) – The index.
  • jindex – The index.
  • index ( int ) – The index.
  • v ( float ) – The weight.
CAMorphNode. GetPSDReference ( )

New in version R19.

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

Return type: c4d.modules.character.CAReferencePSD
Returns: The PSD referential for the morph node.

Table Of Contents