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 Txpwet

Txpwet

Attributes

  • ENGLISH NAME : X-ParticlesWetMapTag
  • NAME : Txpwet
  • INCLUDE : Texpression
  • PATH : res/description/txpwet.res
  • PLUGIN : X-Particles
  • MAXON online help (may not exist): TXPWET

Elements

ID UI Name Type Parameters Cycle
ID_XP_TAG_WETMAP_RENDER_ONLY RenderOnly BOOL  
ID_XP_TAG_WETMAP_DISTANCE Distance REAL
UNIT METER
MIN 0.0
MAXSLIDER 100
CUSTOMGUI REALSLIDER
ID_XP_TAG_WETMAP_RESOLUTION Resolution LONG
MIN 1
MAX 16
ID_XP_TAG_WETMAP_WETNESS Wetness REAL
PARENTCOLLAPSE
UNIT PERCENT
MIN 0.0
MAXSLIDER 100
CUSTOMGUI REALSLIDER
ID_XP_TAG_WETMAP_WETNESS_VAR Variation REAL
UNIT PERCENT
MIN 0.0
MAX 100
CUSTOMGUI REALSLIDER
ID_XP_TAG_WETMAP_WET_TEXTURETAG TextureTag LINK PARENTCOLLAPSE
ID_XP_TAG_WETMAP_WET_TEXTURE Texture SHADERLINK  
ID_XP_TAG_WETMAP_FADE Fade REAL
PARENTCOLLAPSE
UNIT PERCENT
MIN 0.0
MAXSLIDER 100
CUSTOMGUI REALSLIDER
ID_XP_TAG_WETMAP_FADE_VAR Variation REAL
UNIT PERCENT
MIN 0.0
MAX 100
CUSTOMGUI REALSLIDER
ID_XP_TAG_WETMAP_FADE_TEXTURETAG TextureTag LINK PARENTCOLLAPSE
ID_XP_TAG_WETMAP_FADE_TEXTURE Texture SHADERLINK  
ID_XP_TAG_WETMAP_SPREAD_DIST SpreadDist REAL
UNIT METER
MIN 0.0
MAXSLIDER 100
CUSTOMGUI REALSLIDER
ID_XP_TAG_WETMAP_ITERATIONS Iterations LONG
MIN 1
MAX 1000
ID_XP_TAG_WETMAP_SPREAD_RATE SpreadRate REAL
PARENTCOLLAPSE
UNIT PERCENT
MIN 0.0
MAX 100
CUSTOMGUI REALSLIDER
ID_XP_TAG_WETMAP_SPREAD_RATE_VAR Variation REAL
UNIT PERCENT
MIN 0.0
MAX 100
CUSTOMGUI REALSLIDER
ID_XP_TAG_WETMAP_SPREAD_TEXTURETAG TextureTag LINK PARENTCOLLAPSE
ID_XP_TAG_WETMAP_SPREAD_TEXTURE Texture SHADERLINK  
ID_XP_TAG_WETMAP_VMAP VertexMapOut LINK  
ID_XP_TAG_WETMAP_VMAP_SAMPLESIZE VertexSampleSize REAL
UNIT METER
MIN 0.0
MAXSLIDER 100
CUSTOMGUI REALSLIDER
ID_XP_TAG_WETMAP_SOURCES Particles IN_EXCLUDE
NUM_FLAGS 2
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
ID_XP_TAG_WETMAP_HELP_BUTTON BITMAPBUTTON  
ID_XP_TAG_WETMAP_VIDMAN_BUTTON BITMAPBUTTON  
ID_XP_TAG_WETMAP_RESET ResettoDefaults BUTTON  
ID_XP_TAG_WETMAP_SAVE_PRESET SavePreset... BUTTON  
ID_XP_TAG_WETMAP_LOAD_PRESET LoadPreset... BUTTON  

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.Osphere)
    tag = obj.MakeTag(c4d.Txpwet)
    doc.InsertObject(obj)
    c4d.EventAdd(c4d.EVENT_FORCEREDRAW)
    
    #You can set parameters two different ways. 
    #First way              
    tag[c4d.ID_XP_TAG_WETMAP_RENDER_ONLY] = True
    tag[c4d.ID_XP_TAG_WETMAP_DISTANCE] = 0.1
    tag[c4d.ID_XP_TAG_WETMAP_RESOLUTION] = 1
    tag[c4d.ID_XP_TAG_WETMAP_WETNESS] = 0.1
    tag[c4d.ID_XP_TAG_WETMAP_WETNESS_VAR] = 0.1
    tag[c4d.ID_XP_TAG_WETMAP_FADE] = 0.1
    tag[c4d.ID_XP_TAG_WETMAP_FADE_VAR] = 0.1
    tag[c4d.ID_XP_TAG_WETMAP_SPREAD_DIST] = 0.1
    tag[c4d.ID_XP_TAG_WETMAP_ITERATIONS] = 1
    tag[c4d.ID_XP_TAG_WETMAP_SPREAD_RATE] = 0.1
    tag[c4d.ID_XP_TAG_WETMAP_SPREAD_RATE_VAR] = 0.1
    tag[c4d.ID_XP_TAG_WETMAP_VMAP_SAMPLESIZE] = 0.1
    
    #Second way, using the base container.
    bc = tag.GetDataInstance()
    bc.SetBool(c4d.ID_XP_TAG_WETMAP_RENDER_ONLY,True)
    bc.SetFloat(c4d.ID_XP_TAG_WETMAP_DISTANCE,0.1)
    bc.SetInt32(c4d.ID_XP_TAG_WETMAP_RESOLUTION,1)
    bc.SetFloat(c4d.ID_XP_TAG_WETMAP_WETNESS,0.1)
    bc.SetFloat(c4d.ID_XP_TAG_WETMAP_WETNESS_VAR,0.1)
    bc.SetFloat(c4d.ID_XP_TAG_WETMAP_FADE,0.1)
    bc.SetFloat(c4d.ID_XP_TAG_WETMAP_FADE_VAR,0.1)
    bc.SetFloat(c4d.ID_XP_TAG_WETMAP_SPREAD_DIST,0.1)
    bc.SetInt32(c4d.ID_XP_TAG_WETMAP_ITERATIONS,1)
    bc.SetFloat(c4d.ID_XP_TAG_WETMAP_SPREAD_RATE,0.1)
    bc.SetFloat(c4d.ID_XP_TAG_WETMAP_SPREAD_RATE_VAR,0.1)
    bc.SetFloat(c4d.ID_XP_TAG_WETMAP_VMAP_SAMPLESIZE,0.1)

if __name__=='__main__':
    main()
             

C++

#include "c4d.h"
#include "../res/description/txpwet.h"
void SampleFunction()
{
    BaseDocument *pDoc = GetActiveDocument();
    BaseObject *pObject = BaseObject::Alloc(Osphere);
    pDoc->InsertObject(pObject);
    pDoc->StartUndo();
    pDoc->AddUndo(UNDOTYPE_NEW,pObject);
    pDoc->EndUndo();
    pDoc->StartUndo();
    BaseTag *pTag = pObject->MakeTag(Txpwet);
    pDoc->AddUndo(UNDOTYPE_NEW,pTag);
    pDoc->EndUndo();
    pObject->Message(MSG_UPDATE);
    
    //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;
    pTag->SetParameter(DescID(ID_XP_TAG_WETMAP_RENDER_ONLY),GeData(true),flags);
    pTag->SetParameter(DescID(ID_XP_TAG_WETMAP_DISTANCE),GeData(0.1),flags);
    pTag->SetParameter(DescID(ID_XP_TAG_WETMAP_RESOLUTION),GeData(1),flags);
    pTag->SetParameter(DescID(ID_XP_TAG_WETMAP_WETNESS),GeData(0.1),flags);
    pTag->SetParameter(DescID(ID_XP_TAG_WETMAP_WETNESS_VAR),GeData(0.1),flags);
    pTag->SetParameter(DescID(ID_XP_TAG_WETMAP_FADE),GeData(0.1),flags);
    pTag->SetParameter(DescID(ID_XP_TAG_WETMAP_FADE_VAR),GeData(0.1),flags);
    pTag->SetParameter(DescID(ID_XP_TAG_WETMAP_SPREAD_DIST),GeData(0.1),flags);
    pTag->SetParameter(DescID(ID_XP_TAG_WETMAP_ITERATIONS),GeData(1),flags);
    pTag->SetParameter(DescID(ID_XP_TAG_WETMAP_SPREAD_RATE),GeData(0.1),flags);
    pTag->SetParameter(DescID(ID_XP_TAG_WETMAP_SPREAD_RATE_VAR),GeData(0.1),flags);
    pTag->SetParameter(DescID(ID_XP_TAG_WETMAP_VMAP_SAMPLESIZE),GeData(0.1),flags);
    pTag->Message(MSG_UPDATE);            

    //Second way, using the base container.
    BaseContainer *bc =     pTag->GetDataInstance();
    bc->SetBool(ID_XP_TAG_WETMAP_RENDER_ONLY,true);
    bc->SetFloat(ID_XP_TAG_WETMAP_DISTANCE,0.1);
    bc->SetInt32(ID_XP_TAG_WETMAP_RESOLUTION,1);
    bc->SetFloat(ID_XP_TAG_WETMAP_WETNESS,0.1);
    bc->SetFloat(ID_XP_TAG_WETMAP_WETNESS_VAR,0.1);
    bc->SetFloat(ID_XP_TAG_WETMAP_FADE,0.1);
    bc->SetFloat(ID_XP_TAG_WETMAP_FADE_VAR,0.1);
    bc->SetFloat(ID_XP_TAG_WETMAP_SPREAD_DIST,0.1);
    bc->SetInt32(ID_XP_TAG_WETMAP_ITERATIONS,1);
    bc->SetFloat(ID_XP_TAG_WETMAP_SPREAD_RATE,0.1);
    bc->SetFloat(ID_XP_TAG_WETMAP_SPREAD_RATE_VAR,0.1);
    bc->SetFloat(ID_XP_TAG_WETMAP_VMAP_SAMPLESIZE,0.1);
    pTag->Message(MSG_UPDATE);                                                      
}
             

Buttons

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

Python

c4d.CallButton(tag,c4d.ID_XP_TAG_WETMAP_HELP_BUTTON)
c4d.CallButton(tag,c4d.ID_XP_TAG_WETMAP_VIDMAN_BUTTON)
c4d.CallButton(tag,c4d.ID_XP_TAG_WETMAP_RESET)
c4d.CallButton(tag,c4d.ID_XP_TAG_WETMAP_SAVE_PRESET)
c4d.CallButton(tag,c4d.ID_XP_TAG_WETMAP_LOAD_PRESET)

C++

DescriptionCommand dc;
dc.id = DescID(ID_XP_TAG_WETMAP_HELP_BUTTON);             
pTag->Message(MSG_DESCRIPTION_COMMAND, &dc);

DescriptionCommand dc; dc.id = DescID(ID_XP_TAG_WETMAP_VIDMAN_BUTTON); pTag->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(ID_XP_TAG_WETMAP_RESET); pTag->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(ID_XP_TAG_WETMAP_SAVE_PRESET); pTag->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(ID_XP_TAG_WETMAP_LOAD_PRESET); pTag->Message(MSG_DESCRIPTION_COMMAND, &dc);