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 Omnetwork

Omnetwork

Attributes

  • ENGLISH NAME : X-ParticlesNetworkModifier
  • NAME : Omnetwork
  • INCLUDE : Obase
  • PATH : res/description/omnetwork.res
  • PLUGIN : X-Particles
  • MAXON online help (may not exist): OMNETWORK

Elements

ID UI Name Type Parameters Cycle
XMNE_NETWORK_ENABLED Enabled BOOL  
XMNE_NETWORK_MODE Mode LONG  
NETWORK_MODE_INDEP Independent
NETWORK_MODE_ACTION Action-Controlled
XMNE_NETWORK_OPERATION Operation LONG ANIM
NET_OP_ALWAYS Standard
NET_OP_VOLUME InsideVolume
XMNE_NETWORK_GRID_COUNTER ChangeIn BASETIME  
XMNE_NETWORK_GRID_COUNTER_VAR Variation BASETIME  
XMNE_NETWORK_GRID_PLANE Plane LONG  
GRID_PLANE_ANY Any
GRID_PLANE_XY XY
GRID_PLANE_YZ YZ
GRID_PLANE_XZ XZ
XMNE_NETWORK_GRID_AXIS ChangeDirection LONG  
GRID_AXIS_BOTH Positive/Negative
GRID_AXIS_POS PositiveOnly
GRID_AXIS_NEG NegativeOnly
XMNE_NETWORK_GRID_ANGLE_X ChangeAngle(Heading) REAL
UNIT DEGREE
MIN 0.0
MAX 360.0
MINSLIDER 0.0
MAXSLIDER 360.0
CUSTOMGUI REALSLIDER
XMNE_NETWORK_GRID_ANGLE_X_VAR Variation REAL
UNIT DEGREE
MIN 0.0
MAX 360.0
MINSLIDER 0.0
MAXSLIDER 360.0
CUSTOMGUI REALSLIDER
XMNE_NETWORK_GRID_ANGLE_Y ChangeAngle(Pitch) REAL
UNIT DEGREE
MIN 0.0
MAX 360.0
MINSLIDER 0.0
MAXSLIDER 360.0
CUSTOMGUI REALSLIDER
XMNE_NETWORK_GRID_ANGLE_Y_VAR Variation REAL
UNIT DEGREE
MIN 0.0
MAX 360.0
MINSLIDER 0.0
MAXSLIDER 360.0
CUSTOMGUI REALSLIDER
XMNE_NETWORK_GRID_THRESHOLD_X HeadingThreshold REAL
UNIT PERCENT
MIN 0.0
MAX 100.0
MINSLIDER 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
XMNE_NETWORK_GRID_THRESHOLD_Y PitchThreshold REAL
UNIT PERCENT
MIN 0.0
MAX 100.0
MINSLIDER 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
XMNE_NETWORK_GRID_FALLOFF FalloffAffects LONG  
NETWORK_GRID_THRESH Threshold
NETWORK_GRID_ANGLE Angle
NETWORK_GRID_BOTH Both
NETWORK_GRID_NONE Neither
XMNE_NETWORK_VOLOBJECT Object LINK  
XMNE_NETWORK_STARTORTHO AlwaysOrthogonal BOOL  
XMNE_NETWORK_VOLUME_SPACE VolumeSpace LONG  
VOLUME_SPACE_LOCAL Local
VOLUME_SPACE_GLOBAL Global
XMNE_NETWORK_VOLUME_OFFSET Offset REAL
MIN 0.0
UNIT METER
XMNE_NETWORK_VOLUME_INCHECK CheckisInside BOOL  
XMNE_NETWORK_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.Omnetwork)
    doc.InsertObject(obj)
    c4d.EventAdd(c4d.EVENT_FORCEREDRAW)
    
    #You can set parameters two different ways. 
    #First way              
    obj[c4d.XMNE_NETWORK_ENABLED] = True
    obj[c4d.XMNE_NETWORK_MODE] = c4d.NETWORK_MODE_INDEP
    obj[c4d.XMNE_NETWORK_OPERATION] = c4d.NET_OP_ALWAYS
    obj[c4d.XMNE_NETWORK_GRID_PLANE] = c4d.GRID_PLANE_ANY
    obj[c4d.XMNE_NETWORK_GRID_AXIS] = c4d.GRID_AXIS_BOTH
    obj[c4d.XMNE_NETWORK_GRID_ANGLE_X] = 0.1
    obj[c4d.XMNE_NETWORK_GRID_ANGLE_X_VAR] = 0.1
    obj[c4d.XMNE_NETWORK_GRID_ANGLE_Y] = 0.1
    obj[c4d.XMNE_NETWORK_GRID_ANGLE_Y_VAR] = 0.1
    obj[c4d.XMNE_NETWORK_GRID_THRESHOLD_X] = 0.1
    obj[c4d.XMNE_NETWORK_GRID_THRESHOLD_Y] = 0.1
    obj[c4d.XMNE_NETWORK_GRID_FALLOFF] = c4d.NETWORK_GRID_THRESH
    obj[c4d.XMNE_NETWORK_STARTORTHO] = True
    obj[c4d.XMNE_NETWORK_VOLUME_SPACE] = c4d.VOLUME_SPACE_LOCAL
    obj[c4d.XMNE_NETWORK_VOLUME_OFFSET] = 0.1
    obj[c4d.XMNE_NETWORK_VOLUME_INCHECK] = True
    
    #Second way, using the base container.
    bc = obj.GetDataInstance()
    bc.SetBool(c4d.XMNE_NETWORK_ENABLED,True)
    bc.SetInt32(c4d.XMNE_NETWORK_MODE,c4d.NETWORK_MODE_INDEP)
    bc.SetInt32(c4d.XMNE_NETWORK_OPERATION,c4d.NET_OP_ALWAYS)
    bc.SetInt32(c4d.XMNE_NETWORK_GRID_PLANE,c4d.GRID_PLANE_ANY)
    bc.SetInt32(c4d.XMNE_NETWORK_GRID_AXIS,c4d.GRID_AXIS_BOTH)
    bc.SetFloat(c4d.XMNE_NETWORK_GRID_ANGLE_X,0.1)
    bc.SetFloat(c4d.XMNE_NETWORK_GRID_ANGLE_X_VAR,0.1)
    bc.SetFloat(c4d.XMNE_NETWORK_GRID_ANGLE_Y,0.1)
    bc.SetFloat(c4d.XMNE_NETWORK_GRID_ANGLE_Y_VAR,0.1)
    bc.SetFloat(c4d.XMNE_NETWORK_GRID_THRESHOLD_X,0.1)
    bc.SetFloat(c4d.XMNE_NETWORK_GRID_THRESHOLD_Y,0.1)
    bc.SetInt32(c4d.XMNE_NETWORK_GRID_FALLOFF,c4d.NETWORK_GRID_THRESH)
    bc.SetBool(c4d.XMNE_NETWORK_STARTORTHO,True)
    bc.SetInt32(c4d.XMNE_NETWORK_VOLUME_SPACE,c4d.VOLUME_SPACE_LOCAL)
    bc.SetFloat(c4d.XMNE_NETWORK_VOLUME_OFFSET,0.1)
    bc.SetBool(c4d.XMNE_NETWORK_VOLUME_INCHECK,True)

if __name__=='__main__':
    main()
             

C++

#include "c4d.h"
#include "../res/description/omnetwork.h"
void SampleFunction()
{
    BaseDocument *pDoc = GetActiveDocument();
    BaseObject *pObject = BaseObject::Alloc(Omnetwork);
    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(XMNE_NETWORK_ENABLED),GeData(true),flags);
    pObject->SetParameter(DescID(XMNE_NETWORK_MODE),GeData(NETWORK_MODE_INDEP),flags);
    pObject->SetParameter(DescID(XMNE_NETWORK_OPERATION),GeData(NET_OP_ALWAYS),flags);
    pObject->SetParameter(DescID(XMNE_NETWORK_GRID_PLANE),GeData(GRID_PLANE_ANY),flags);
    pObject->SetParameter(DescID(XMNE_NETWORK_GRID_AXIS),GeData(GRID_AXIS_BOTH),flags);
    pObject->SetParameter(DescID(XMNE_NETWORK_GRID_ANGLE_X),GeData(0.1),flags);
    pObject->SetParameter(DescID(XMNE_NETWORK_GRID_ANGLE_X_VAR),GeData(0.1),flags);
    pObject->SetParameter(DescID(XMNE_NETWORK_GRID_ANGLE_Y),GeData(0.1),flags);
    pObject->SetParameter(DescID(XMNE_NETWORK_GRID_ANGLE_Y_VAR),GeData(0.1),flags);
    pObject->SetParameter(DescID(XMNE_NETWORK_GRID_THRESHOLD_X),GeData(0.1),flags);
    pObject->SetParameter(DescID(XMNE_NETWORK_GRID_THRESHOLD_Y),GeData(0.1),flags);
    pObject->SetParameter(DescID(XMNE_NETWORK_GRID_FALLOFF),GeData(NETWORK_GRID_THRESH),flags);
    pObject->SetParameter(DescID(XMNE_NETWORK_STARTORTHO),GeData(true),flags);
    pObject->SetParameter(DescID(XMNE_NETWORK_VOLUME_SPACE),GeData(VOLUME_SPACE_LOCAL),flags);
    pObject->SetParameter(DescID(XMNE_NETWORK_VOLUME_OFFSET),GeData(0.1),flags);
    pObject->SetParameter(DescID(XMNE_NETWORK_VOLUME_INCHECK),GeData(true),flags);
    pObject->Message(MSG_UPDATE);            

    //Second way, using the base container.
    BaseContainer *bc =     pObject->GetDataInstance();
    bc->SetBool(XMNE_NETWORK_ENABLED,true);
    bc->SetInt32(XMNE_NETWORK_MODE,NETWORK_MODE_INDEP);
    bc->SetInt32(XMNE_NETWORK_OPERATION,NET_OP_ALWAYS);
    bc->SetInt32(XMNE_NETWORK_GRID_PLANE,GRID_PLANE_ANY);
    bc->SetInt32(XMNE_NETWORK_GRID_AXIS,GRID_AXIS_BOTH);
    bc->SetFloat(XMNE_NETWORK_GRID_ANGLE_X,0.1);
    bc->SetFloat(XMNE_NETWORK_GRID_ANGLE_X_VAR,0.1);
    bc->SetFloat(XMNE_NETWORK_GRID_ANGLE_Y,0.1);
    bc->SetFloat(XMNE_NETWORK_GRID_ANGLE_Y_VAR,0.1);
    bc->SetFloat(XMNE_NETWORK_GRID_THRESHOLD_X,0.1);
    bc->SetFloat(XMNE_NETWORK_GRID_THRESHOLD_Y,0.1);
    bc->SetInt32(XMNE_NETWORK_GRID_FALLOFF,NETWORK_GRID_THRESH);
    bc->SetBool(XMNE_NETWORK_STARTORTHO,true);
    bc->SetInt32(XMNE_NETWORK_VOLUME_SPACE,VOLUME_SPACE_LOCAL);
    bc->SetFloat(XMNE_NETWORK_VOLUME_OFFSET,0.1);
    bc->SetBool(XMNE_NETWORK_VOLUME_INCHECK,true);
    pObject->Message(MSG_UPDATE);                                                      
}