c4d.modules.character.CAMorphNode

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

Members

CAMorphNode.GetUp()

Get the parent morph node.

Return type:CAMorphNode
Returns:The node.
CAMorphNode.GetNext()

Get the next morph node.

Return type:CAMorphNode
Returns:The node.
CAMorphNode.GetPrev()

Get the previous morph node.

Return type:CAMorphNode
Returns:The node.
CAMorphNode.GetDown()

Get the first child of the morph node.

Return type:CAMorphNode
Returns:The node.
CAMorphNode.GetInfo()

Get the info of the morph node.

Return type:int
Returns:The info flag:
CAMORPH_DATA_FLAGS_P Position.
CAMORPH_DATA_FLAGS_S Scale.
CAMORPH_DATA_FLAGS_R Rotation.
CAMORPH_DATA_FLAGS_POINTS Points.
CAMORPH_DATA_FLAGS_TANGENTS Tangents.
CAMORPH_DATA_FLAGS_VERTEXMAP Vertexmap.
CAMORPH_DATA_FLAGS_WEIGHTMAPS Weightmaps.
CAMORPH_DATA_FLAGS_PARAMS Params.
CAMORPH_DATA_FLAGS_USERDATA Userdata.
CAMORPH_DATA_FLAGS_UV UV.
CAMORPH_DATA_FLAGS_ASTAG As tag.
CAMORPH_DATA_FLAGS_ALL All.
CAMORPH_DATA_FLAGS_0 No flags.
Return type:CAMorphNode
Returns:The node.
CAMorphNode.GetP()

Get the position of the morph node.

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

Get the scale of the morph node.

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

Get the rotation of the morph node.

Return type: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:Vector
Returns:The point.
CAMorphNode.SetPoint(index, pnt)

Get the point of the morph node.

Parameters:
  • index (int) – The index of the point.
  • pnt (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:Vector
Returns:The tangent.
CAMorphNode.SetTangent(index, v)

Get the tangent of the morph node.

Parameters:
  • index (int) – The index of the tangent.
  • v (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 (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.

Table Of Contents