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 OCloud

OCloud

Attributes

  • ENGLISH NAME : Cloud
  • NAME : OCloud
  • INCLUDE : Obase
  • PATH : sky/description/ocloud.res
  • PLUGIN : sky
  • MAXON online help (may not exist): OCLOUD

Elements

ID UI Name Type Parameters Cycle
SKY_CLOUD_OVERRIDE_GROUP OverrideGroup BOOL  
SKY_CLOUD_GENERATOR_FLAG Active BOOL  
SKY_CLOUD_MIX Mix REAL
CUSTOMGUI REALSLIDER
UNIT PERCENT
MIN 0
MAX 100
MINSLIDER 0
MAXSLIDER 100
SKY_CLOUD_ALTITUDE Altitude REAL
UNIT METER
MIN 0
SKY_CLOUD_FALLOFF Falloff REAL
UNIT METER
MIN 0
SKY_CLOUD_LUM_FALLOFF LuminanceFalloff REAL
UNIT METER
MIN 0
SKY_CLOUD_TRANS_FALLOFF TransparencyFalloff REAL
UNIT METER
MIN 0
SKY_CLOUD_COLOR Color COLOR  
SKY_CLOUD_HQ_LIGHTING High-QualityLighting BOOL  
SKY_CLOUD_OBJECT_FALLOFF Falloff SPLINE  
SKY_CLOUD_OFFSET_DIST Distance REAL
UNIT METER
MIN 0
SKY_CLOUD_KEEP_SHAPE KeepShape BOOL  
SKY_CLOUD_TYPE CloudType LONG  
SKY_CLOUD_TYPE_STANDARD Standard
SKY_CLOUD_TYPE_ACPERL Acperlucidus
SKY_CLOUD_TYPE_ACLENTI Aclenticularis
SKY_CLOUD_TYPE_CBCAPINC Cbcapillatusincus
SKY_CLOUD_COVERAGE Coverage REAL
CUSTOMGUI REALSLIDER
UNIT PERCENT
MIN 0
MAX 100
MINSLIDER 0
MAXSLIDER 100
SKY_CLOUD_CONTRAST Contrast REAL
CUSTOMGUI REALSLIDER
UNIT PERCENT
MIN 0
MAX 100
MINSLIDER 0
MAXSLIDER 100
SKY_CLOUD_SIZE_RATIO Ratio REAL
CUSTOMGUI REALSLIDER
UNIT PERCENT
MIN 0
MAX 100
MINSLIDER 0
MAXSLIDER 100
SKY_CLOUD_GROOVE_DEPTH GrooveDepth REAL
UNIT PERCENT
MIN 0
SKY_CLOUD_SHAPE_STRENGTH ShapeStrength REAL
CUSTOMGUI REALSLIDER
UNIT PERCENT
MIN 0
MAX 100
MINSLIDER 0
MAXSLIDER 100
SKY_CLOUD_SCALE Scale VECTOR
UNIT PERCENT
MIN 1

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.OCloud)
    doc.InsertObject(obj)
    c4d.EventAdd(c4d.EVENT_FORCEREDRAW)
    
    #You can set parameters two different ways. 
    #First way              
    obj[c4d.SKY_CLOUD_OVERRIDE_GROUP] = True
    obj[c4d.SKY_CLOUD_GENERATOR_FLAG] = True
    obj[c4d.SKY_CLOUD_MIX] = 0.1
    obj[c4d.SKY_CLOUD_ALTITUDE] = 0.1
    obj[c4d.SKY_CLOUD_FALLOFF] = 0.1
    obj[c4d.SKY_CLOUD_LUM_FALLOFF] = 0.1
    obj[c4d.SKY_CLOUD_TRANS_FALLOFF] = 0.1
    obj[c4d.SKY_CLOUD_HQ_LIGHTING] = True
    obj[c4d.SKY_CLOUD_OFFSET_DIST] = 0.1
    obj[c4d.SKY_CLOUD_KEEP_SHAPE] = True
    obj[c4d.SKY_CLOUD_TYPE] = c4d.SKY_CLOUD_TYPE_STANDARD
    obj[c4d.SKY_CLOUD_COVERAGE] = 0.1
    obj[c4d.SKY_CLOUD_CONTRAST] = 0.1
    obj[c4d.SKY_CLOUD_SIZE_RATIO] = 0.1
    obj[c4d.SKY_CLOUD_GROOVE_DEPTH] = 0.1
    obj[c4d.SKY_CLOUD_SHAPE_STRENGTH] = 0.1
    obj[c4d.SKY_CLOUD_SCALE] = c4d.Vector(1.0,1.0,1.0)
    
    #Second way, using the base container.
    bc = obj.GetDataInstance()
    bc.SetBool(c4d.SKY_CLOUD_OVERRIDE_GROUP,True)
    bc.SetBool(c4d.SKY_CLOUD_GENERATOR_FLAG,True)
    bc.SetFloat(c4d.SKY_CLOUD_MIX,0.1)
    bc.SetFloat(c4d.SKY_CLOUD_ALTITUDE,0.1)
    bc.SetFloat(c4d.SKY_CLOUD_FALLOFF,0.1)
    bc.SetFloat(c4d.SKY_CLOUD_LUM_FALLOFF,0.1)
    bc.SetFloat(c4d.SKY_CLOUD_TRANS_FALLOFF,0.1)
    bc.SetBool(c4d.SKY_CLOUD_HQ_LIGHTING,True)
    bc.SetFloat(c4d.SKY_CLOUD_OFFSET_DIST,0.1)
    bc.SetBool(c4d.SKY_CLOUD_KEEP_SHAPE,True)
    bc.SetInt32(c4d.SKY_CLOUD_TYPE,c4d.SKY_CLOUD_TYPE_STANDARD)
    bc.SetFloat(c4d.SKY_CLOUD_COVERAGE,0.1)
    bc.SetFloat(c4d.SKY_CLOUD_CONTRAST,0.1)
    bc.SetFloat(c4d.SKY_CLOUD_SIZE_RATIO,0.1)
    bc.SetFloat(c4d.SKY_CLOUD_GROOVE_DEPTH,0.1)
    bc.SetFloat(c4d.SKY_CLOUD_SHAPE_STRENGTH,0.1)
    bc.SetVector(c4d.SKY_CLOUD_SCALE, c4d.Vector(1.0,1.0,1.0)

if __name__=='__main__':
    main()
             

C++

#include "c4d.h"
#include "../sky/description/ocloud.h"
void SampleFunction()
{
    BaseDocument *pDoc = GetActiveDocument();
    BaseObject *pObject = BaseObject::Alloc(OCloud);
    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(SKY_CLOUD_OVERRIDE_GROUP),GeData(true),flags);
    pObject->SetParameter(DescID(SKY_CLOUD_GENERATOR_FLAG),GeData(true),flags);
    pObject->SetParameter(DescID(SKY_CLOUD_MIX),GeData(0.1),flags);
    pObject->SetParameter(DescID(SKY_CLOUD_ALTITUDE),GeData(0.1),flags);
    pObject->SetParameter(DescID(SKY_CLOUD_FALLOFF),GeData(0.1),flags);
    pObject->SetParameter(DescID(SKY_CLOUD_LUM_FALLOFF),GeData(0.1),flags);
    pObject->SetParameter(DescID(SKY_CLOUD_TRANS_FALLOFF),GeData(0.1),flags);
    pObject->SetParameter(DescID(SKY_CLOUD_HQ_LIGHTING),GeData(true),flags);
    pObject->SetParameter(DescID(SKY_CLOUD_OFFSET_DIST),GeData(0.1),flags);
    pObject->SetParameter(DescID(SKY_CLOUD_KEEP_SHAPE),GeData(true),flags);
    pObject->SetParameter(DescID(SKY_CLOUD_TYPE),GeData(SKY_CLOUD_TYPE_STANDARD),flags);
    pObject->SetParameter(DescID(SKY_CLOUD_COVERAGE),GeData(0.1),flags);
    pObject->SetParameter(DescID(SKY_CLOUD_CONTRAST),GeData(0.1),flags);
    pObject->SetParameter(DescID(SKY_CLOUD_SIZE_RATIO),GeData(0.1),flags);
    pObject->SetParameter(DescID(SKY_CLOUD_GROOVE_DEPTH),GeData(0.1),flags);
    pObject->SetParameter(DescID(SKY_CLOUD_SHAPE_STRENGTH),GeData(0.1),flags);
    pObject->SetParameter(DescID(SKY_CLOUD_SCALE),GeData(Vector(1.0,1.0,1.0)),flags);
    pObject->Message(MSG_UPDATE);            

    //Second way, using the base container.
    BaseContainer *bc =     pObject->GetDataInstance();
    bc->SetBool(SKY_CLOUD_OVERRIDE_GROUP,true);
    bc->SetBool(SKY_CLOUD_GENERATOR_FLAG,true);
    bc->SetFloat(SKY_CLOUD_MIX,0.1);
    bc->SetFloat(SKY_CLOUD_ALTITUDE,0.1);
    bc->SetFloat(SKY_CLOUD_FALLOFF,0.1);
    bc->SetFloat(SKY_CLOUD_LUM_FALLOFF,0.1);
    bc->SetFloat(SKY_CLOUD_TRANS_FALLOFF,0.1);
    bc->SetBool(SKY_CLOUD_HQ_LIGHTING,true);
    bc->SetFloat(SKY_CLOUD_OFFSET_DIST,0.1);
    bc->SetBool(SKY_CLOUD_KEEP_SHAPE,true);
    bc->SetInt32(SKY_CLOUD_TYPE,SKY_CLOUD_TYPE_STANDARD);
    bc->SetFloat(SKY_CLOUD_COVERAGE,0.1);
    bc->SetFloat(SKY_CLOUD_CONTRAST,0.1);
    bc->SetFloat(SKY_CLOUD_SIZE_RATIO,0.1);
    bc->SetFloat(SKY_CLOUD_GROOVE_DEPTH,0.1);
    bc->SetFloat(SKY_CLOUD_SHAPE_STRENGTH,0.1);
    bc->SetVector(SKY_CLOUD_SCALE, c4d.Vector(1.0,1.0,1.0);
    pObject->Message(MSG_UPDATE);                                                      
}