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 Ofur

Ofur

Attributes

  • ENGLISH NAME : Fur
  • NAME : Ofur
  • INCLUDE : Obase
  • PATH : hair/description/ofur.res
  • PLUGIN : hair
  • MAXON online help (may not exist): OFUR

Elements

ID UI Name Type Parameters Cycle
FUR_GENERATOR_LINK Object LINK  
FUR_GENERATOR_COUNT Count LONG MIN
FUR_GENERATOR_SEGMENTS Segments LONG
MIN 1
MAX 4096
FUR_GENERATOR_LENGTH Length REAL
UNIT METER
MIN 0.0
FUR_GENERATOR_LENGTH_VAR Variation REAL
UNIT METER
MIN 0.0
FUR_GENERATOR_RANDOMIZE Randomize REAL
UNIT DEGREE
MIN 0.0
FUR_GENERATOR_COMB_X CombX LINK  
FUR_GENERATOR_COMB_Y CombY LINK  
FUR_GENERATOR_COMB_Z CombZ LINK  
FUR_GENERATOR_DENSITY Density LINK  
FUR_GENERATOR_RENDER_CACHED CacheAllFur BOOL HIDDEN
FUR_GENERATOR_EDITOR EditorDisplay BOOL  
FUR_GENERATOR_LOD LevelofDetail REAL
UNIT PERCENT
MIN 0.0
MAX 100.0

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.Ofur)
    doc.InsertObject(obj)
    c4d.EventAdd(c4d.EVENT_FORCEREDRAW)
    
    #You can set parameters two different ways. 
    #First way              
    obj[c4d.FUR_GENERATOR_COUNT] = 1
    obj[c4d.FUR_GENERATOR_SEGMENTS] = 1
    obj[c4d.FUR_GENERATOR_LENGTH] = 0.1
    obj[c4d.FUR_GENERATOR_LENGTH_VAR] = 0.1
    obj[c4d.FUR_GENERATOR_RANDOMIZE] = 0.1
    obj[c4d.FUR_GENERATOR_RENDER_CACHED] = True
    obj[c4d.FUR_GENERATOR_EDITOR] = True
    obj[c4d.FUR_GENERATOR_LOD] = 0.1
    
    #Second way, using the base container.
    bc = obj.GetDataInstance()
    bc.SetInt32(c4d.FUR_GENERATOR_COUNT,1)
    bc.SetInt32(c4d.FUR_GENERATOR_SEGMENTS,1)
    bc.SetFloat(c4d.FUR_GENERATOR_LENGTH,0.1)
    bc.SetFloat(c4d.FUR_GENERATOR_LENGTH_VAR,0.1)
    bc.SetFloat(c4d.FUR_GENERATOR_RANDOMIZE,0.1)
    bc.SetBool(c4d.FUR_GENERATOR_RENDER_CACHED,True)
    bc.SetBool(c4d.FUR_GENERATOR_EDITOR,True)
    bc.SetFloat(c4d.FUR_GENERATOR_LOD,0.1)

if __name__=='__main__':
    main()
             

C++

#include "c4d.h"
#include "../hair/description/ofur.h"
void SampleFunction()
{
    BaseDocument *pDoc = GetActiveDocument();
    BaseObject *pObject = BaseObject::Alloc(Ofur);
    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(FUR_GENERATOR_COUNT),GeData(1),flags);
    pObject->SetParameter(DescID(FUR_GENERATOR_SEGMENTS),GeData(1),flags);
    pObject->SetParameter(DescID(FUR_GENERATOR_LENGTH),GeData(0.1),flags);
    pObject->SetParameter(DescID(FUR_GENERATOR_LENGTH_VAR),GeData(0.1),flags);
    pObject->SetParameter(DescID(FUR_GENERATOR_RANDOMIZE),GeData(0.1),flags);
    pObject->SetParameter(DescID(FUR_GENERATOR_RENDER_CACHED),GeData(true),flags);
    pObject->SetParameter(DescID(FUR_GENERATOR_EDITOR),GeData(true),flags);
    pObject->SetParameter(DescID(FUR_GENERATOR_LOD),GeData(0.1),flags);
    pObject->Message(MSG_UPDATE);            

    //Second way, using the base container.
    BaseContainer *bc =     pObject->GetDataInstance();
    bc->SetInt32(FUR_GENERATOR_COUNT,1);
    bc->SetInt32(FUR_GENERATOR_SEGMENTS,1);
    bc->SetFloat(FUR_GENERATOR_LENGTH,0.1);
    bc->SetFloat(FUR_GENERATOR_LENGTH_VAR,0.1);
    bc->SetFloat(FUR_GENERATOR_RANDOMIZE,0.1);
    bc->SetBool(FUR_GENERATOR_RENDER_CACHED,true);
    bc->SetBool(FUR_GENERATOR_EDITOR,true);
    bc->SetFloat(FUR_GENERATOR_LOD,0.1);
    pObject->Message(MSG_UPDATE);                                                      
}