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 Oxpskinner

Oxpskinner

Attributes

  • ENGLISH NAME : X-ParticlesSkinner
  • NAME : Oxpskinner
  • INCLUDE : Obase
  • PATH : res/description/oxpskinner.res
  • PLUGIN : X-Particles
  • MAXON online help (may not exist): OXPSKINNER

Elements

ID UI Name Type Parameters Cycle
XSKIN_SURFACE_FUNCTION Surface LONG SCALE_H
XSKIN_SURFACE_FUNCTION_BLINN Blinn(Blobbies)
XSKIN_SURFACE_FUNCTION_WYVILL Wyvill
XSKIN_SURFACE_FUNCTION_LINKS Links
XSKIN_SURFACE_FUNCTION_RMAN RenderMan
XSKIN_SURFACE_FUNCTION_HART Hart
XSKIN_SURFACE_FUNCTION_GEISS Geiss
XSKIN_SURFACE_FUNCTION_SPH Fluid
XSKIN_SURFACE_FUNCTION_ZHUBRIDSON Zhu-Bridson
XSKIN_GRID_RENDER_ONLY RenderOnly BOOL  
XSKIN_SURFACE_VALUE SurfaceLevel REAL
UNIT PERCENT
MIN 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XSKIN_GRID_SIZE PolygonSize REAL
UNIT METER
MIN 0.01
SCALE_H
MINSLIDER 0.1
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
XSKIN_GRID_RENDER_SIZE RenderPolygonSize REAL
UNIT METER
MIN 0.01
SCALE_H
MINSLIDER 0.1
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
XSKIN_SURFACE_SIZE_MODE SurfaceSize LONG SCALE_H
XSKIN_SURFACE_SIZE_MODE_FIXED Custom
XSKIN_SURFACE_SIZE_MODE_SOURCE Source
XSKIN_SURFACE_SIZE CustomRadius REAL
UNIT METER
MIN 0.0
CUSTOMGUI REALSLIDER
MAXSLIDER 100.0
SCALE_H
XSKIN_SURFACE_SIZE_MULT Scale REAL
UNIT PERCENT
MIN 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XSKIN_SURFACE_DENSITY_MIN DensityMin REAL
HIDDEN
UNIT PERCENT
MIN 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
STEP 0.1
XSKIN_SURFACE_DENSITY_MAX DensityMax REAL
HIDDEN
UNIT PERCENT
MIN 0.0
MAXSLIDER 200.0
CUSTOMGUI REALSLIDER
SCALE_H
STEP 0.1
XSKIN_SURFACE_STRETCH_SPEED SpeedStretch BOOL  
XSKIN_SURFACE_STRETCH_SPEED_FACTOR Strength REAL
UNIT PERCENT
MIN 0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XSKIN_SURFACE_SMOOTH_KEEP_VOLUME PreserveVolume BOOL  
XSKIN_SURFACE_SMOOTH_VOLUME_STRENGTH Strength REAL
UNIT PERCENT
MIN 0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
XSKIN_SURFACE_GEOM_SMOOTH Geometry BOOL  
XSKIN_SURFACE_GEOM_SMOOTH_ITER Iterations REAL
MIN 1
MAX 200
XSKIN_SURFACE_GEOM_SMOOTH_STRENGTH Strength REAL
UNIT PERCENT
MIN 0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XSKIN_SURFACE_POINT_SMOOTH Particles BOOL  
XSKIN_SMOOTH_RADIUS Radius REAL
UNIT METER
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 500.0
CUSTOMGUI REALSLIDER
SCALE_H
XSKIN_SURFACE_POINT_SMOOTH_ITER Iterations REAL
MIN 1
MAX 200
XSKIN_SURFACE_POINT_SMOOTH_STRENGTH Strength REAL
UNIT PERCENT
MIN 0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XSKIN_SURFACE_POLYS Polygons LONG SCALE_H
XSKIN_SURFACE_POLYS_TRIS Tris
XSKIN_SURFACE_POLYS_QUADS Quads
XSKIN_SURFACE_NORMALS CreateNormals BOOL  
XSKIN_SURFACE_WEIGHTING Weighting BOOL HIDDEN
XSKIN_SURFACE_SOURCES Objects IN_EXCLUDE
NUM_FLAGS 4
INIT_STATE 3
SEND_SELCHNGMSG 1
SCALE_V
OPEN
IMAGE_01_ON 1009316
IMAGE_01_OFF 1009320
IMAGE_02_ON 300000231
IMAGE_02_OFF 300000230
IMAGE_03_ON 1030467
IMAGE_03_OFF 1030468
IMAGE_04_ON 1030469
IMAGE_04_OFF 1030470
XSKIN_HELP_BUTTON BITMAPBUTTON  
XSKIN_VIDMAN_BUTTON BITMAPBUTTON  
XSKIN_BUTTON_RESET ResettoDefaults BUTTON  
XSKIN_BUTTON_SAVE_PRESET SavePreset... BUTTON  
XSKIN_BUTTON_LOAD_PRESET LoadPreset... BUTTON  
XSKIN_SURFACE_CUT Cut BOOL  
XSKIN_SURFACE_CUT_OFFSET Offset REAL
UNIT METER
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 500.0
CUSTOMGUI REALSLIDER
SCALE_H
XSKIN_SURFACE_CUT_OBJECTS Objects IN_EXCLUDE
NUM_FLAGS 3
INIT_STATE 7
SEND_SELCHNGMSG 1
SCALE_V
IMAGE_01_ON 1009316
IMAGE_01_OFF 1009320
IMAGE_02_ON 300000231
IMAGE_02_OFF 300000230
IMAGE_03_ON 1030466
IMAGE_03_OFF 1030465
XSKIN_SURFACE_CULL Cull BOOL  
XSKIN_SURFACE_CULL_OFFSET Offset REAL
UNIT METER
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 500.0
CUSTOMGUI REALSLIDER
SCALE_H
XSKIN_SURFACE_CULL_OBJECTS Objects IN_EXCLUDE
NUM_FLAGS 3
INIT_STATE 7
SEND_SELCHNGMSG 1
SCALE_V
IMAGE_01_ON 1009316
IMAGE_01_OFF 1009320
IMAGE_02_ON 300000231
IMAGE_02_OFF 300000230
IMAGE_03_ON 1030466
IMAGE_03_OFF 1030465
XSKIN_SURFACE_THREADING Threading BOOL  
XSKIN_DEBUG_VOXELS FullCalculation(DEBUG) BOOL HIDDEN

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.Oxpskinner)
    doc.InsertObject(obj)
    c4d.EventAdd(c4d.EVENT_FORCEREDRAW)
    
    #You can set parameters two different ways. 
    #First way              
    obj[c4d.XSKIN_SURFACE_FUNCTION] = c4d.XSKIN_SURFACE_FUNCTION_BLINN
    obj[c4d.XSKIN_GRID_RENDER_ONLY] = True
    obj[c4d.XSKIN_SURFACE_VALUE] = 0.1
    obj[c4d.XSKIN_GRID_SIZE] = 0.1
    obj[c4d.XSKIN_GRID_RENDER_SIZE] = 0.1
    obj[c4d.XSKIN_SURFACE_SIZE_MODE] = c4d.XSKIN_SURFACE_SIZE_MODE_FIXED
    obj[c4d.XSKIN_SURFACE_SIZE] = 0.1
    obj[c4d.XSKIN_SURFACE_SIZE_MULT] = 0.1
    obj[c4d.XSKIN_SURFACE_DENSITY_MIN] = 0.1
    obj[c4d.XSKIN_SURFACE_DENSITY_MAX] = 0.1
    obj[c4d.XSKIN_SURFACE_STRETCH_SPEED] = True
    obj[c4d.XSKIN_SURFACE_STRETCH_SPEED_FACTOR] = 0.1
    obj[c4d.XSKIN_SURFACE_SMOOTH_KEEP_VOLUME] = True
    obj[c4d.XSKIN_SURFACE_SMOOTH_VOLUME_STRENGTH] = 0.1
    obj[c4d.XSKIN_SURFACE_GEOM_SMOOTH] = True
    obj[c4d.XSKIN_SURFACE_GEOM_SMOOTH_ITER] = 0.1
    obj[c4d.XSKIN_SURFACE_GEOM_SMOOTH_STRENGTH] = 0.1
    obj[c4d.XSKIN_SURFACE_POINT_SMOOTH] = True
    obj[c4d.XSKIN_SMOOTH_RADIUS] = 0.1
    obj[c4d.XSKIN_SURFACE_POINT_SMOOTH_ITER] = 0.1
    obj[c4d.XSKIN_SURFACE_POINT_SMOOTH_STRENGTH] = 0.1
    obj[c4d.XSKIN_SURFACE_POLYS] = c4d.XSKIN_SURFACE_POLYS_TRIS
    obj[c4d.XSKIN_SURFACE_NORMALS] = True
    obj[c4d.XSKIN_SURFACE_WEIGHTING] = True
    obj[c4d.XSKIN_SURFACE_CUT] = True
    obj[c4d.XSKIN_SURFACE_CUT_OFFSET] = 0.1
    obj[c4d.XSKIN_SURFACE_CULL] = True
    obj[c4d.XSKIN_SURFACE_CULL_OFFSET] = 0.1
    obj[c4d.XSKIN_SURFACE_THREADING] = True
    obj[c4d.XSKIN_DEBUG_VOXELS] = True
    
    #Second way, using the base container.
    bc = obj.GetDataInstance()
    bc.SetInt32(c4d.XSKIN_SURFACE_FUNCTION,c4d.XSKIN_SURFACE_FUNCTION_BLINN)
    bc.SetBool(c4d.XSKIN_GRID_RENDER_ONLY,True)
    bc.SetFloat(c4d.XSKIN_SURFACE_VALUE,0.1)
    bc.SetFloat(c4d.XSKIN_GRID_SIZE,0.1)
    bc.SetFloat(c4d.XSKIN_GRID_RENDER_SIZE,0.1)
    bc.SetInt32(c4d.XSKIN_SURFACE_SIZE_MODE,c4d.XSKIN_SURFACE_SIZE_MODE_FIXED)
    bc.SetFloat(c4d.XSKIN_SURFACE_SIZE,0.1)
    bc.SetFloat(c4d.XSKIN_SURFACE_SIZE_MULT,0.1)
    bc.SetFloat(c4d.XSKIN_SURFACE_DENSITY_MIN,0.1)
    bc.SetFloat(c4d.XSKIN_SURFACE_DENSITY_MAX,0.1)
    bc.SetBool(c4d.XSKIN_SURFACE_STRETCH_SPEED,True)
    bc.SetFloat(c4d.XSKIN_SURFACE_STRETCH_SPEED_FACTOR,0.1)
    bc.SetBool(c4d.XSKIN_SURFACE_SMOOTH_KEEP_VOLUME,True)
    bc.SetFloat(c4d.XSKIN_SURFACE_SMOOTH_VOLUME_STRENGTH,0.1)
    bc.SetBool(c4d.XSKIN_SURFACE_GEOM_SMOOTH,True)
    bc.SetFloat(c4d.XSKIN_SURFACE_GEOM_SMOOTH_ITER,0.1)
    bc.SetFloat(c4d.XSKIN_SURFACE_GEOM_SMOOTH_STRENGTH,0.1)
    bc.SetBool(c4d.XSKIN_SURFACE_POINT_SMOOTH,True)
    bc.SetFloat(c4d.XSKIN_SMOOTH_RADIUS,0.1)
    bc.SetFloat(c4d.XSKIN_SURFACE_POINT_SMOOTH_ITER,0.1)
    bc.SetFloat(c4d.XSKIN_SURFACE_POINT_SMOOTH_STRENGTH,0.1)
    bc.SetInt32(c4d.XSKIN_SURFACE_POLYS,c4d.XSKIN_SURFACE_POLYS_TRIS)
    bc.SetBool(c4d.XSKIN_SURFACE_NORMALS,True)
    bc.SetBool(c4d.XSKIN_SURFACE_WEIGHTING,True)
    bc.SetBool(c4d.XSKIN_SURFACE_CUT,True)
    bc.SetFloat(c4d.XSKIN_SURFACE_CUT_OFFSET,0.1)
    bc.SetBool(c4d.XSKIN_SURFACE_CULL,True)
    bc.SetFloat(c4d.XSKIN_SURFACE_CULL_OFFSET,0.1)
    bc.SetBool(c4d.XSKIN_SURFACE_THREADING,True)
    bc.SetBool(c4d.XSKIN_DEBUG_VOXELS,True)

if __name__=='__main__':
    main()
             

C++

#include "c4d.h"
#include "../res/description/oxpskinner.h"
void SampleFunction()
{
    BaseDocument *pDoc = GetActiveDocument();
    BaseObject *pObject = BaseObject::Alloc(Oxpskinner);
    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(XSKIN_SURFACE_FUNCTION),GeData(XSKIN_SURFACE_FUNCTION_BLINN),flags);
    pObject->SetParameter(DescID(XSKIN_GRID_RENDER_ONLY),GeData(true),flags);
    pObject->SetParameter(DescID(XSKIN_SURFACE_VALUE),GeData(0.1),flags);
    pObject->SetParameter(DescID(XSKIN_GRID_SIZE),GeData(0.1),flags);
    pObject->SetParameter(DescID(XSKIN_GRID_RENDER_SIZE),GeData(0.1),flags);
    pObject->SetParameter(DescID(XSKIN_SURFACE_SIZE_MODE),GeData(XSKIN_SURFACE_SIZE_MODE_FIXED),flags);
    pObject->SetParameter(DescID(XSKIN_SURFACE_SIZE),GeData(0.1),flags);
    pObject->SetParameter(DescID(XSKIN_SURFACE_SIZE_MULT),GeData(0.1),flags);
    pObject->SetParameter(DescID(XSKIN_SURFACE_DENSITY_MIN),GeData(0.1),flags);
    pObject->SetParameter(DescID(XSKIN_SURFACE_DENSITY_MAX),GeData(0.1),flags);
    pObject->SetParameter(DescID(XSKIN_SURFACE_STRETCH_SPEED),GeData(true),flags);
    pObject->SetParameter(DescID(XSKIN_SURFACE_STRETCH_SPEED_FACTOR),GeData(0.1),flags);
    pObject->SetParameter(DescID(XSKIN_SURFACE_SMOOTH_KEEP_VOLUME),GeData(true),flags);
    pObject->SetParameter(DescID(XSKIN_SURFACE_SMOOTH_VOLUME_STRENGTH),GeData(0.1),flags);
    pObject->SetParameter(DescID(XSKIN_SURFACE_GEOM_SMOOTH),GeData(true),flags);
    pObject->SetParameter(DescID(XSKIN_SURFACE_GEOM_SMOOTH_ITER),GeData(0.1),flags);
    pObject->SetParameter(DescID(XSKIN_SURFACE_GEOM_SMOOTH_STRENGTH),GeData(0.1),flags);
    pObject->SetParameter(DescID(XSKIN_SURFACE_POINT_SMOOTH),GeData(true),flags);
    pObject->SetParameter(DescID(XSKIN_SMOOTH_RADIUS),GeData(0.1),flags);
    pObject->SetParameter(DescID(XSKIN_SURFACE_POINT_SMOOTH_ITER),GeData(0.1),flags);
    pObject->SetParameter(DescID(XSKIN_SURFACE_POINT_SMOOTH_STRENGTH),GeData(0.1),flags);
    pObject->SetParameter(DescID(XSKIN_SURFACE_POLYS),GeData(XSKIN_SURFACE_POLYS_TRIS),flags);
    pObject->SetParameter(DescID(XSKIN_SURFACE_NORMALS),GeData(true),flags);
    pObject->SetParameter(DescID(XSKIN_SURFACE_WEIGHTING),GeData(true),flags);
    pObject->SetParameter(DescID(XSKIN_SURFACE_CUT),GeData(true),flags);
    pObject->SetParameter(DescID(XSKIN_SURFACE_CUT_OFFSET),GeData(0.1),flags);
    pObject->SetParameter(DescID(XSKIN_SURFACE_CULL),GeData(true),flags);
    pObject->SetParameter(DescID(XSKIN_SURFACE_CULL_OFFSET),GeData(0.1),flags);
    pObject->SetParameter(DescID(XSKIN_SURFACE_THREADING),GeData(true),flags);
    pObject->SetParameter(DescID(XSKIN_DEBUG_VOXELS),GeData(true),flags);
    pObject->Message(MSG_UPDATE);            

    //Second way, using the base container.
    BaseContainer *bc =     pObject->GetDataInstance();
    bc->SetInt32(XSKIN_SURFACE_FUNCTION,XSKIN_SURFACE_FUNCTION_BLINN);
    bc->SetBool(XSKIN_GRID_RENDER_ONLY,true);
    bc->SetFloat(XSKIN_SURFACE_VALUE,0.1);
    bc->SetFloat(XSKIN_GRID_SIZE,0.1);
    bc->SetFloat(XSKIN_GRID_RENDER_SIZE,0.1);
    bc->SetInt32(XSKIN_SURFACE_SIZE_MODE,XSKIN_SURFACE_SIZE_MODE_FIXED);
    bc->SetFloat(XSKIN_SURFACE_SIZE,0.1);
    bc->SetFloat(XSKIN_SURFACE_SIZE_MULT,0.1);
    bc->SetFloat(XSKIN_SURFACE_DENSITY_MIN,0.1);
    bc->SetFloat(XSKIN_SURFACE_DENSITY_MAX,0.1);
    bc->SetBool(XSKIN_SURFACE_STRETCH_SPEED,true);
    bc->SetFloat(XSKIN_SURFACE_STRETCH_SPEED_FACTOR,0.1);
    bc->SetBool(XSKIN_SURFACE_SMOOTH_KEEP_VOLUME,true);
    bc->SetFloat(XSKIN_SURFACE_SMOOTH_VOLUME_STRENGTH,0.1);
    bc->SetBool(XSKIN_SURFACE_GEOM_SMOOTH,true);
    bc->SetFloat(XSKIN_SURFACE_GEOM_SMOOTH_ITER,0.1);
    bc->SetFloat(XSKIN_SURFACE_GEOM_SMOOTH_STRENGTH,0.1);
    bc->SetBool(XSKIN_SURFACE_POINT_SMOOTH,true);
    bc->SetFloat(XSKIN_SMOOTH_RADIUS,0.1);
    bc->SetFloat(XSKIN_SURFACE_POINT_SMOOTH_ITER,0.1);
    bc->SetFloat(XSKIN_SURFACE_POINT_SMOOTH_STRENGTH,0.1);
    bc->SetInt32(XSKIN_SURFACE_POLYS,XSKIN_SURFACE_POLYS_TRIS);
    bc->SetBool(XSKIN_SURFACE_NORMALS,true);
    bc->SetBool(XSKIN_SURFACE_WEIGHTING,true);
    bc->SetBool(XSKIN_SURFACE_CUT,true);
    bc->SetFloat(XSKIN_SURFACE_CUT_OFFSET,0.1);
    bc->SetBool(XSKIN_SURFACE_CULL,true);
    bc->SetFloat(XSKIN_SURFACE_CULL_OFFSET,0.1);
    bc->SetBool(XSKIN_SURFACE_THREADING,true);
    bc->SetBool(XSKIN_DEBUG_VOXELS,true);
    pObject->Message(MSG_UPDATE);                                                      
}
             

Buttons

This node has buttons. Buttons can manually be executed by calling the following code

Python

c4d.CallButton(obj,c4d.XSKIN_HELP_BUTTON)
c4d.CallButton(obj,c4d.XSKIN_VIDMAN_BUTTON)
c4d.CallButton(obj,c4d.XSKIN_BUTTON_RESET)
c4d.CallButton(obj,c4d.XSKIN_BUTTON_SAVE_PRESET)
c4d.CallButton(obj,c4d.XSKIN_BUTTON_LOAD_PRESET)

C++

DescriptionCommand dc;
dc.id = DescID(XSKIN_HELP_BUTTON);             
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);

DescriptionCommand dc; dc.id = DescID(XSKIN_VIDMAN_BUTTON); pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(XSKIN_BUTTON_RESET); pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(XSKIN_BUTTON_SAVE_PRESET); pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(XSKIN_BUTTON_LOAD_PRESET); pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);