Here you will find documentation on all the descriptions that Cinema 4D currently has. You can list them Alphabetically, by Type or Plugin . The sample Python and C++ code is automatically generated and in some cases may not be 100% correct. If something doesn't work then please refer to the official Cinema 4D SDK documentation for more information.

IDs and information for Talembicmorphtag

Talembicmorphtag

Attributes

  • ENGLISH NAME : AlembicMorphTag
  • NAME : Talembicmorphtag
  • INCLUDE : Texpression
  • PATH : alembic/description/Talembicmorphtag.res
  • PLUGIN : alembic
  • MAXON online help (may not exist): TALEMBICMORPHTAG

Elements

ID UI Name Type Parameters Cycle
ALEMBIC_MT_UNIT_SCALE Scale UNITSCALE ANIM
ALEMBIC_MT_PATH PathtoAlembicFile FILENAME
ANIM OFF
SCALE_H
ALEMBIC_MT_PATH_STATE BOOL  
ALEMBIC_MT_IDENTIFIER ObjectIdentifier STRING
ANIM OFF
SCALE_H
ALEMBIC_MT_IDENT_STATE BOOL  
ALEMBIC_MT_USE_ANIMATION UseAnimation BOOL  
ALEMBIC_MT_ANIMATION_FRAME Frame BASETIME  
ALEMBIC_MT_INTERPOLATION Interpolation BOOL ANIM
ALEMBIC_MT_ANIMATION_OFFSET Offset BASETIME  
ALEMBIC_MT_ANIMATION_MODE Mode LONG
DEFAULT ALEMBIC_MT_ANIMATION_MODE_PLAY
ANIM OFF
ALEMBIC_MT_ANIMATION_MODE_PLAY Play
ALEMBIC_MT_ANIMATION_MODE_LOOP Loop
ALEMBIC_MT_ANIMATION_MODE_PINGPONG PingPong
ALEMBIC_MT_ANIMATION_SPEED Speed REAL
MIN 0.0
UNIT PERCENT
ALEMBIC_MT_ANIMATION_RESET Reset BUTTON  
ALEMBIC_MT_ANIMATION_CURVE RemappingCurve SPLINE  
ALEMBIC_MT_UPDATE_XFORM UpdateTransform BOOL ANIM
ALEMBIC_MT_UPDATE_GEOMETRY UpdateGeometry BOOL ANIM

Example Code

The following code does not use the correct values when setting the data. You should check directly in C4D for the correct values that you should use in place of the ones that are shown. This code is just to show you how to access the values for getting and setting the parameters.

Python

import c4d
from c4d import gui
def main():
    obj = c4d.BaseObject(c4d.Osphere)
    tag = obj.MakeTag(c4d.Talembicmorphtag)
    doc.InsertObject(obj)
    c4d.EventAdd(c4d.EVENT_FORCEREDRAW)
    
    #You can set parameters two different ways. 
    #First way              
    tag[c4d.ALEMBIC_MT_PATH] = "c:\\SomeFile.txt"
    tag[c4d.ALEMBIC_MT_PATH_STATE] = True
    tag[c4d.ALEMBIC_MT_IDENTIFIER] = "Hello World"
    tag[c4d.ALEMBIC_MT_IDENT_STATE] = True
    tag[c4d.ALEMBIC_MT_USE_ANIMATION] = True
    tag[c4d.ALEMBIC_MT_INTERPOLATION] = True
    tag[c4d.ALEMBIC_MT_ANIMATION_MODE] = c4d.ALEMBIC_MT_ANIMATION_MODE_PLAY
    tag[c4d.ALEMBIC_MT_ANIMATION_SPEED] = 0.1
    tag[c4d.ALEMBIC_MT_UPDATE_XFORM] = True
    tag[c4d.ALEMBIC_MT_UPDATE_GEOMETRY] = True
    
    #Second way, using the base container.
    bc = tag.GetDataInstance()
    bc.SetFileName(c4d.ALEMBIC_MT_PATH,"c:\\SomeFile.txt")
    bc.SetBool(c4d.ALEMBIC_MT_PATH_STATE,True)
    bc.SetString(c4d.ALEMBIC_MT_IDENTIFIER,"Hello World")
    bc.SetBool(c4d.ALEMBIC_MT_IDENT_STATE,True)
    bc.SetBool(c4d.ALEMBIC_MT_USE_ANIMATION,True)
    bc.SetBool(c4d.ALEMBIC_MT_INTERPOLATION,True)
    bc.SetInt32(c4d.ALEMBIC_MT_ANIMATION_MODE,c4d.ALEMBIC_MT_ANIMATION_MODE_PLAY)
    bc.SetFloat(c4d.ALEMBIC_MT_ANIMATION_SPEED,0.1)
    bc.SetBool(c4d.ALEMBIC_MT_UPDATE_XFORM,True)
    bc.SetBool(c4d.ALEMBIC_MT_UPDATE_GEOMETRY,True)

if __name__=='__main__':
    main()
             

C++

#include "c4d.h"
#include "../alembic/description/Talembicmorphtag.h"
void SampleFunction()
{
    BaseDocument *pDoc = GetActiveDocument();
    BaseObject *pObject = BaseObject::Alloc(Osphere);
    pDoc->InsertObject(pObject);
    pDoc->StartUndo();
    pDoc->AddUndo(UNDOTYPE_NEW,pObject);
    pDoc->EndUndo();
    pDoc->StartUndo();
    BaseTag *pTag = pObject->MakeTag(Talembicmorphtag);
    pDoc->AddUndo(UNDOTYPE_NEW,pTag);
    pDoc->EndUndo();
    pObject->Message(MSG_UPDATE);
    
    //You can set parameters two different ways. 

    //First way              
    //Some objects do not store all their data in the container. You need to use GetParameter()/SetParameter() instead. 

    DESCFLAGS_SET flags = DESCFLAGS_SET_PARAM_SET;
    pTag->SetParameter(DescID(ALEMBIC_MT_PATH),GeData(Filename("c:\\SomeFile.txt"),flags);
    pTag->SetParameter(DescID(ALEMBIC_MT_PATH_STATE),GeData(true),flags);
    pTag->SetParameter(DescID(ALEMBIC_MT_IDENTIFIER),GeData("Hello World"),flags);
    pTag->SetParameter(DescID(ALEMBIC_MT_IDENT_STATE),GeData(true),flags);
    pTag->SetParameter(DescID(ALEMBIC_MT_USE_ANIMATION),GeData(true),flags);
    pTag->SetParameter(DescID(ALEMBIC_MT_INTERPOLATION),GeData(true),flags);
    pTag->SetParameter(DescID(ALEMBIC_MT_ANIMATION_MODE),GeData(ALEMBIC_MT_ANIMATION_MODE_PLAY),flags);
    pTag->SetParameter(DescID(ALEMBIC_MT_ANIMATION_SPEED),GeData(0.1),flags);
    pTag->SetParameter(DescID(ALEMBIC_MT_UPDATE_XFORM),GeData(true),flags);
    pTag->SetParameter(DescID(ALEMBIC_MT_UPDATE_GEOMETRY),GeData(true),flags);
    pTag->Message(MSG_UPDATE);            

    //Second way, using the base container.
    BaseContainer *bc =     pTag->GetDataInstance();
    bc->SetFileName(ALEMBIC_MT_PATH,"c:\\SomeFile.txt");
    bc->SetBool(ALEMBIC_MT_PATH_STATE,true);
    bc->SetString(ALEMBIC_MT_IDENTIFIER,"Hello World");
    bc->SetBool(ALEMBIC_MT_IDENT_STATE,true);
    bc->SetBool(ALEMBIC_MT_USE_ANIMATION,true);
    bc->SetBool(ALEMBIC_MT_INTERPOLATION,true);
    bc->SetInt32(ALEMBIC_MT_ANIMATION_MODE,ALEMBIC_MT_ANIMATION_MODE_PLAY);
    bc->SetFloat(ALEMBIC_MT_ANIMATION_SPEED,0.1);
    bc->SetBool(ALEMBIC_MT_UPDATE_XFORM,true);
    bc->SetBool(ALEMBIC_MT_UPDATE_GEOMETRY,true);
    pTag->Message(MSG_UPDATE);                                                      
}
             

Buttons

This node has buttons. Buttons can manually be executed by calling the following code

Python

c4d.CallButton(tag,c4d.ALEMBIC_MT_ANIMATION_RESET)

C++

DescriptionCommand dc;
dc.id = DescID(ALEMBIC_MT_ANIMATION_RESET);             
pTag->Message(MSG_DESCRIPTION_COMMAND, &dc);