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 Omdynpart

Omdynpart

Attributes

  • ENGLISH NAME : X-ParticlesDynamicParticlesModifier
  • NAME : Omdynpart
  • INCLUDE : Obase
  • PATH : res/description/omdynpart.res
  • PLUGIN : X-Particles
  • MAXON online help (may not exist): OMDYNPART

Elements

ID UI Name Type Parameters Cycle
XMDP_DYNPART_ENABLED Enabled BOOL  
XMDP_DYNPART_MODE Mode LONG  
DYNPART_MODE_INDEP Independent
DYNPART_MODE_ACTION Action-Controlled
XMDP_DYNPART_EMITTER SpawningEmitter LINK  
XMDP_DYNPART_MAXCOUNT Max.Count LONG
MIN 0
MINSLIDER 0
MAXSLIDER 100
CUSTOMGUI LONGSLIDER
XMDP_DYNPART_FRAMECOUNT CountPerFrame LONG
MIN 0
MINSLIDER 0
MAXSLIDER 100
CUSTOMGUI LONGSLIDER
XMDP_DYNPART_FRAMECOUNT_VAR Variation LONG
MIN 0
MINSLIDER 0
MAXSLIDER 100
CUSTOMGUI LONGSLIDER
XMDP_DYNPART_OFFSET Offset REAL
UNIT METER
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
XMDP_DYNPART_OFFSET_PLANE OffsetPlane LONG  
DYNPART_OFFSET_PLANE_NONE None
DYNPART_OFFSET_PLANE_XY XY
DYNPART_OFFSET_PLANE_XZ XZ
DYNPART_OFFSET_PLANE_YZ YZ
XMDP_DYNPART_OFFSET_PLANE_LOCAL LocalObjectPlane BOOL  
XMDP_DYNPART_OFFSET_PLANE_OBJECT Object LINK  
XMDP_DYNPART_SPEEDMODE SpeedMode LONG  
DYNPART_SPEEDMODE_INHERIT InheritfromSource
DYNPART_SPEEDMODE_ABS Absolute
XMDP_DYNPART_SPLINE_IN FadeIn SPLINE
Y_MIN 0.0
Y_MAX 1.0
X_MIN 0.0
X_MAX 1.0
X_STEPS 0.01
Y_STEPS 0.01
XMDP_DYNPART_STEPS_IN FadeinSteps LONG
MIN 1
MINSLIDER 1
MAXSLIDER 100
CUSTOMGUI LONGSLIDER
XMDP_DYNPART_SPLINE_OUT FadeOut SPLINE
Y_MIN 0.0
Y_MAX 1.0
X_MIN 0.0
X_MAX 1.0
X_STEPS 0.01
Y_STEPS 0.01
XMDP_DYNPART_STEPS_OUT FadeOutSteps LONG
MIN 1
MINSLIDER 1
MAXSLIDER 100
CUSTOMGUI LONGSLIDER
XMDP_DYNPART_GROUP Groups IN_EXCLUDE
NUM_FLAGS 2
INIT_STATE 3
SEND_SELCHNGMSG 1
SCALE_V
IMAGE_01_ON 1009316
IMAGE_01_OFF 1009320
IMAGE_02_ON 300000231
IMAGE_02_OFF 300000230

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.Omdynpart)
    doc.InsertObject(obj)
    c4d.EventAdd(c4d.EVENT_FORCEREDRAW)
    
    #You can set parameters two different ways. 
    #First way              
    obj[c4d.XMDP_DYNPART_ENABLED] = True
    obj[c4d.XMDP_DYNPART_MODE] = c4d.DYNPART_MODE_INDEP
    obj[c4d.XMDP_DYNPART_MAXCOUNT] = 1
    obj[c4d.XMDP_DYNPART_FRAMECOUNT] = 1
    obj[c4d.XMDP_DYNPART_FRAMECOUNT_VAR] = 1
    obj[c4d.XMDP_DYNPART_OFFSET] = 0.1
    obj[c4d.XMDP_DYNPART_OFFSET_PLANE] = c4d.DYNPART_OFFSET_PLANE_NONE
    obj[c4d.XMDP_DYNPART_OFFSET_PLANE_LOCAL] = True
    obj[c4d.XMDP_DYNPART_SPEEDMODE] = c4d.DYNPART_SPEEDMODE_INHERIT
    obj[c4d.XMDP_DYNPART_STEPS_IN] = 1
    obj[c4d.XMDP_DYNPART_STEPS_OUT] = 1
    
    #Second way, using the base container.
    bc = obj.GetDataInstance()
    bc.SetBool(c4d.XMDP_DYNPART_ENABLED,True)
    bc.SetInt32(c4d.XMDP_DYNPART_MODE,c4d.DYNPART_MODE_INDEP)
    bc.SetInt32(c4d.XMDP_DYNPART_MAXCOUNT,1)
    bc.SetInt32(c4d.XMDP_DYNPART_FRAMECOUNT,1)
    bc.SetInt32(c4d.XMDP_DYNPART_FRAMECOUNT_VAR,1)
    bc.SetFloat(c4d.XMDP_DYNPART_OFFSET,0.1)
    bc.SetInt32(c4d.XMDP_DYNPART_OFFSET_PLANE,c4d.DYNPART_OFFSET_PLANE_NONE)
    bc.SetBool(c4d.XMDP_DYNPART_OFFSET_PLANE_LOCAL,True)
    bc.SetInt32(c4d.XMDP_DYNPART_SPEEDMODE,c4d.DYNPART_SPEEDMODE_INHERIT)
    bc.SetInt32(c4d.XMDP_DYNPART_STEPS_IN,1)
    bc.SetInt32(c4d.XMDP_DYNPART_STEPS_OUT,1)

if __name__=='__main__':
    main()
             

C++

#include "c4d.h"
#include "../res/description/omdynpart.h"
void SampleFunction()
{
    BaseDocument *pDoc = GetActiveDocument();
    BaseObject *pObject = BaseObject::Alloc(Omdynpart);
    pDoc->InsertObject(pObject);
    pDoc->StartUndo();
    pDoc->AddUndo(UNDO_NEW,pObject);
    pDoc->EndUndo();
    EventAdd(EVENT_FORCEREDRAW);
    
    //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;
    pObject->SetParameter(DescID(XMDP_DYNPART_ENABLED),GeData(true),flags);
    pObject->SetParameter(DescID(XMDP_DYNPART_MODE),GeData(DYNPART_MODE_INDEP),flags);
    pObject->SetParameter(DescID(XMDP_DYNPART_MAXCOUNT),GeData(1),flags);
    pObject->SetParameter(DescID(XMDP_DYNPART_FRAMECOUNT),GeData(1),flags);
    pObject->SetParameter(DescID(XMDP_DYNPART_FRAMECOUNT_VAR),GeData(1),flags);
    pObject->SetParameter(DescID(XMDP_DYNPART_OFFSET),GeData(0.1),flags);
    pObject->SetParameter(DescID(XMDP_DYNPART_OFFSET_PLANE),GeData(DYNPART_OFFSET_PLANE_NONE),flags);
    pObject->SetParameter(DescID(XMDP_DYNPART_OFFSET_PLANE_LOCAL),GeData(true),flags);
    pObject->SetParameter(DescID(XMDP_DYNPART_SPEEDMODE),GeData(DYNPART_SPEEDMODE_INHERIT),flags);
    pObject->SetParameter(DescID(XMDP_DYNPART_STEPS_IN),GeData(1),flags);
    pObject->SetParameter(DescID(XMDP_DYNPART_STEPS_OUT),GeData(1),flags);
    pObject->Message(MSG_UPDATE);            

    //Second way, using the base container.
    BaseContainer *bc =     pObject->GetDataInstance();
    bc->SetBool(XMDP_DYNPART_ENABLED,true);
    bc->SetInt32(XMDP_DYNPART_MODE,DYNPART_MODE_INDEP);
    bc->SetInt32(XMDP_DYNPART_MAXCOUNT,1);
    bc->SetInt32(XMDP_DYNPART_FRAMECOUNT,1);
    bc->SetInt32(XMDP_DYNPART_FRAMECOUNT_VAR,1);
    bc->SetFloat(XMDP_DYNPART_OFFSET,0.1);
    bc->SetInt32(XMDP_DYNPART_OFFSET_PLANE,DYNPART_OFFSET_PLANE_NONE);
    bc->SetBool(XMDP_DYNPART_OFFSET_PLANE_LOCAL,true);
    bc->SetInt32(XMDP_DYNPART_SPEEDMODE,DYNPART_SPEEDMODE_INHERIT);
    bc->SetInt32(XMDP_DYNPART_STEPS_IN,1);
    bc->SetInt32(XMDP_DYNPART_STEPS_OUT,1);
    pObject->Message(MSG_UPDATE);                                                      
}