c4d.modules.character.CAMorph

../../../../_images/association_pose.png

Members

CAMorph.GetName()

Get the name of the morph.

Return type:str
Returns:The name.
CAMorph.SetName(name)

Set the name of the morph.

Parameters:name (str) – The name.
CAMorph.GetID()

Get the ID of the morph.

Return type:int
Returns:The ID.
CAMorph.CopyFrom(src, trn, flags)

Get the ID of the morph.

Parameters:
  • src (CAMorph) – The source morph.
  • trn (any) – Set to None, currently not used.
  • flags (int) –

    The flags:

    CAMORPH_COPY_FLAGS_0 0 Flags
Return type:

bool

Returns:

True on success, otherwise False.

CAMorph.GetFirst()

Get the first morph node.

Return type:CAMorphNode
Returns:The first morph node.
CAMorph.SetMode(doc, tag, flags, mode)

Set the mode.

Parameters:
  • doc (BaseDocument) – The document.
  • tag (CAPoseMorphTag) – The morph tag.
  • flags (int) –

    The value:

    CAMORPH_MODE_FLAGS_COLLAPSE Collapse.
    CAMORPH_MODE_FLAGS_EXPAND Expand.
    CAMORPH_MODE_FLAGS_ALL All.
  • mode (int) –

    The mode:

    CAMORPH_MODE_ABS Abs.
    CAMORPH_MODE_REL Rel.
    CAMORPH_MODE_ROT Rot.
    CAMORPH_MODE_CORRECTIONAL Correctional.
    CAMORPH_CORRECTIONAL_AREA Area.
    CAMORPH_MODE_AUTO Auto.
    CAMORPH_MODE_0 No flags.
Return type:

int

Returns:

True on success, otherwise False.

CAMorph.Store(doc, tag, flags)

Store the morph.

Parameters:
  • doc (BaseDocument) – The document.
  • tag (CAPoseMorphTag) – The morph tag.
  • flags (int) –

    The flags:

    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.
CAMorph.Apply(doc, tag, flags)

Apply the morph.

Parameters:
  • doc (BaseDocument) – The document.
  • tag (CAPoseMorphTag) – The morph tag.
  • flags (int) –

    The flags:

    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.

Table Of Contents