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 Ominherit

Ominherit

Attributes

  • ENGLISH NAME : X-ParticlesInheritanceModifier
  • NAME : Ominherit
  • INCLUDE : Obase
  • PATH : res/description/ominherit.res
  • PLUGIN : X-Particles
  • MAXON online help (may not exist): OMINHERIT

Elements

ID UI Name Type Parameters Cycle
XMIH_INHERIT_ENABLED Enabled BOOL  
XMIH_INHERIT_MODE Mode LONG  
INHERIT_MODE_INDEP Independent
INHERIT_MODE_ACTION Action-Controlled
XMIH_INHERIT_TARGET TargetEmitter LINK  
XMIH_INHERIT_OPERATION Inheritance LONG  
INHERIT_OPERATION_DISTANCE Distance(Relative)
INHERIT_OPERATION_DISTANCE_ABS Distance(Absolute)
INHERIT_OPERATION_TIME Time
INHERIT_OPERATION_DIRECT Immediate
XMIH_INHERIT_TIME TimetoCompletion BASETIME  
XMIH_INHERIT_ABSDIST Distance REAL
UNIT METER
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 1000.0
CUSTOMGUI REALSLIDER
XMIH_INHERIT_IPOS Position BOOL  
XMIH_INHERIT_ISCALE Scale BOOL  
XMIH_INHERIT_IROT Rotation BOOL  
XMIH_INHERIT_ICOLOR Color BOOL  
XMIH_INHERIT_IRADIUS Radius BOOL  
XMIH_INHERIT_IMASS Mass BOOL  
XMIH_INHERIT_IVELOCITY Velocity BOOL  
XMIH_INHERIT_DOSNAP SnaptoTarget BOOL  
XMIH_INHERIT_SNAPDIST SnapDistance REAL
UNIT METER
STEP 1.0
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
XMIH_INHERIT_KEEPSNAP KeepSnappedPosition BOOL  
XMIH_INHERIT_DOBRAKE UseBraking BOOL  
XMIH_INHERIT_BRAKEDIST BrakeDistance REAL
UNIT METER
STEP 1.0
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
XMIH_INHERIT_BRAKEFACTOR BrakeStrength REAL
UNIT PERCENT
MIN 0.0
MAX 100.0
MINSLIDER 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
XMIH_INHERIT_BRAKEMINSPEED Min.Speed REAL
UNIT METER
STEP 1.0
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
XMIH_INHERIT_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.Ominherit)
    doc.InsertObject(obj)
    c4d.EventAdd(c4d.EVENT_FORCEREDRAW)
    
    #You can set parameters two different ways. 
    #First way              
    obj[c4d.XMIH_INHERIT_ENABLED] = True
    obj[c4d.XMIH_INHERIT_MODE] = c4d.INHERIT_MODE_INDEP
    obj[c4d.XMIH_INHERIT_OPERATION] = c4d.INHERIT_OPERATION_DISTANCE
    obj[c4d.XMIH_INHERIT_ABSDIST] = 0.1
    obj[c4d.XMIH_INHERIT_IPOS] = True
    obj[c4d.XMIH_INHERIT_ISCALE] = True
    obj[c4d.XMIH_INHERIT_IROT] = True
    obj[c4d.XMIH_INHERIT_ICOLOR] = True
    obj[c4d.XMIH_INHERIT_IRADIUS] = True
    obj[c4d.XMIH_INHERIT_IMASS] = True
    obj[c4d.XMIH_INHERIT_IVELOCITY] = True
    obj[c4d.XMIH_INHERIT_DOSNAP] = True
    obj[c4d.XMIH_INHERIT_SNAPDIST] = 0.1
    obj[c4d.XMIH_INHERIT_KEEPSNAP] = True
    obj[c4d.XMIH_INHERIT_DOBRAKE] = True
    obj[c4d.XMIH_INHERIT_BRAKEDIST] = 0.1
    obj[c4d.XMIH_INHERIT_BRAKEFACTOR] = 0.1
    obj[c4d.XMIH_INHERIT_BRAKEMINSPEED] = 0.1
    
    #Second way, using the base container.
    bc = obj.GetDataInstance()
    bc.SetBool(c4d.XMIH_INHERIT_ENABLED,True)
    bc.SetInt32(c4d.XMIH_INHERIT_MODE,c4d.INHERIT_MODE_INDEP)
    bc.SetInt32(c4d.XMIH_INHERIT_OPERATION,c4d.INHERIT_OPERATION_DISTANCE)
    bc.SetFloat(c4d.XMIH_INHERIT_ABSDIST,0.1)
    bc.SetBool(c4d.XMIH_INHERIT_IPOS,True)
    bc.SetBool(c4d.XMIH_INHERIT_ISCALE,True)
    bc.SetBool(c4d.XMIH_INHERIT_IROT,True)
    bc.SetBool(c4d.XMIH_INHERIT_ICOLOR,True)
    bc.SetBool(c4d.XMIH_INHERIT_IRADIUS,True)
    bc.SetBool(c4d.XMIH_INHERIT_IMASS,True)
    bc.SetBool(c4d.XMIH_INHERIT_IVELOCITY,True)
    bc.SetBool(c4d.XMIH_INHERIT_DOSNAP,True)
    bc.SetFloat(c4d.XMIH_INHERIT_SNAPDIST,0.1)
    bc.SetBool(c4d.XMIH_INHERIT_KEEPSNAP,True)
    bc.SetBool(c4d.XMIH_INHERIT_DOBRAKE,True)
    bc.SetFloat(c4d.XMIH_INHERIT_BRAKEDIST,0.1)
    bc.SetFloat(c4d.XMIH_INHERIT_BRAKEFACTOR,0.1)
    bc.SetFloat(c4d.XMIH_INHERIT_BRAKEMINSPEED,0.1)

if __name__=='__main__':
    main()
             

C++

#include "c4d.h"
#include "../res/description/ominherit.h"
void SampleFunction()
{
    BaseDocument *pDoc = GetActiveDocument();
    BaseObject *pObject = BaseObject::Alloc(Ominherit);
    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(XMIH_INHERIT_ENABLED),GeData(true),flags);
    pObject->SetParameter(DescID(XMIH_INHERIT_MODE),GeData(INHERIT_MODE_INDEP),flags);
    pObject->SetParameter(DescID(XMIH_INHERIT_OPERATION),GeData(INHERIT_OPERATION_DISTANCE),flags);
    pObject->SetParameter(DescID(XMIH_INHERIT_ABSDIST),GeData(0.1),flags);
    pObject->SetParameter(DescID(XMIH_INHERIT_IPOS),GeData(true),flags);
    pObject->SetParameter(DescID(XMIH_INHERIT_ISCALE),GeData(true),flags);
    pObject->SetParameter(DescID(XMIH_INHERIT_IROT),GeData(true),flags);
    pObject->SetParameter(DescID(XMIH_INHERIT_ICOLOR),GeData(true),flags);
    pObject->SetParameter(DescID(XMIH_INHERIT_IRADIUS),GeData(true),flags);
    pObject->SetParameter(DescID(XMIH_INHERIT_IMASS),GeData(true),flags);
    pObject->SetParameter(DescID(XMIH_INHERIT_IVELOCITY),GeData(true),flags);
    pObject->SetParameter(DescID(XMIH_INHERIT_DOSNAP),GeData(true),flags);
    pObject->SetParameter(DescID(XMIH_INHERIT_SNAPDIST),GeData(0.1),flags);
    pObject->SetParameter(DescID(XMIH_INHERIT_KEEPSNAP),GeData(true),flags);
    pObject->SetParameter(DescID(XMIH_INHERIT_DOBRAKE),GeData(true),flags);
    pObject->SetParameter(DescID(XMIH_INHERIT_BRAKEDIST),GeData(0.1),flags);
    pObject->SetParameter(DescID(XMIH_INHERIT_BRAKEFACTOR),GeData(0.1),flags);
    pObject->SetParameter(DescID(XMIH_INHERIT_BRAKEMINSPEED),GeData(0.1),flags);
    pObject->Message(MSG_UPDATE);            

    //Second way, using the base container.
    BaseContainer *bc =     pObject->GetDataInstance();
    bc->SetBool(XMIH_INHERIT_ENABLED,true);
    bc->SetInt32(XMIH_INHERIT_MODE,INHERIT_MODE_INDEP);
    bc->SetInt32(XMIH_INHERIT_OPERATION,INHERIT_OPERATION_DISTANCE);
    bc->SetFloat(XMIH_INHERIT_ABSDIST,0.1);
    bc->SetBool(XMIH_INHERIT_IPOS,true);
    bc->SetBool(XMIH_INHERIT_ISCALE,true);
    bc->SetBool(XMIH_INHERIT_IROT,true);
    bc->SetBool(XMIH_INHERIT_ICOLOR,true);
    bc->SetBool(XMIH_INHERIT_IRADIUS,true);
    bc->SetBool(XMIH_INHERIT_IMASS,true);
    bc->SetBool(XMIH_INHERIT_IVELOCITY,true);
    bc->SetBool(XMIH_INHERIT_DOSNAP,true);
    bc->SetFloat(XMIH_INHERIT_SNAPDIST,0.1);
    bc->SetBool(XMIH_INHERIT_KEEPSNAP,true);
    bc->SetBool(XMIH_INHERIT_DOBRAKE,true);
    bc->SetFloat(XMIH_INHERIT_BRAKEDIST,0.1);
    bc->SetFloat(XMIH_INHERIT_BRAKEFACTOR,0.1);
    bc->SetFloat(XMIH_INHERIT_BRAKEMINSPEED,0.1);
    pObject->Message(MSG_UPDATE);                                                      
}