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 TBakeTexture

TBakeTexture

Attributes

  • ENGLISH NAME : BakeMaterial
  • NAME : TBakeTexture
  • INCLUDE : Tbase
  • PATH : sla/description/tbaketexture.res
  • PLUGIN : sla
  • MAXON online help (may not exist): TBAKETEXTURE

Elements

ID UI Name Type Parameters Cycle
BAKETEXTURE_NAME Filename FILENAME SAVE
BAKETEXTURE_FORMAT Format LONG  
BAKETEXTURE_OPTIONS_BTN Options... BUTTON  
BAKETEXTURE_SINGLEFILE SingleFile BOOL  
BAKETEXTURE_COLORPROFILE ColorProfile COLORPROFILE
DISPLAYMODE
SCALE_H
BAKETEXTURE_COLOR_DEPTH ColorDepth LONG  
BAKETEXTURE_AUTOSIZE AutomaticSize BOOL  
BAKETEXTURE_WIDTH Width LONG
MIN 16
MAX 16000
BAKETEXTURE_HEIGHT Height LONG
MIN 16
MAX 16000
BAKETEXTURE_AUTO_MIN MinimalSize LONG
MIN 16
MAX 16000
BAKETEXTURE_AUTO_MAX MaximalSize LONG
MIN 16
MAX 16000
BAKETEXTURE_AUTO_PIXEL_SIZE PixelSize REAL MIN
BAKETEXTURE_SUPERSAMPLING Supersampling LONG
MIN 0
MAX 10
BAKETEXTURE_PIXELBORDER PixelBorder LONG
MIN 0
MAX 20
BAKETEXTURE_CONTINUE_UV ContinueUVs BOOL  
BAKETEXTURE_BACKGROUND Background COLOR  
BAKETEXTURE_USE_POLYSELECTION UsePolygonSelection BOOL  
BAKETEXTURE_USE_BUMP EvaluateBump BOOL  
BAKETEXTURE_USE_CAMERA_VECTOR UseCameraVector BOOL  
BAKETEXTURE_CHANNEL_COLOR Color BOOL  
BAKETEXTURE_CHANNEL_LUMINANCE Luminance BOOL  
BAKETEXTURE_CHANNEL_DIFFUSION Diffusion BOOL  
BAKETEXTURE_CHANNEL_BUMP Bump BOOL  
BAKETEXTURE_CHANNEL_ALPHA Alpha BOOL  
BAKETEXTURE_CHANNEL_TRANS Transparency BOOL  
BAKETEXTURE_CHANNEL_DISPLACEMENT Displacement BOOL  
BAKETEXTURE_CHANNEL_S_COLOR SurfaceColor BOOL  
BAKETEXTURE_CHANNEL_ILLUMINATION Illumination BOOL  
BAKETEXTURE_CHANNEL_SHADOWS Shadows BOOL  
BAKETEXTURE_CHANNEL_AO AmbientOcclusion BOOL  
BAKETEXTURE_CHANNEL_NORMAL Normal BOOL  
BAKETEXTURE_CHANNEL_UVMAP UVMap BOOL  
BAKETEXTURE_CHANNEL_REFLECTION Reflection BOOL  
BAKETEXTURE_COLOR_ILLUM Illumination BOOL  
BAKETEXTURE_COLOR_SHADOWS Shadows BOOL  
BAKETEXTURE_COLOR_LUMINANCE Luminance BOOL  
BAKETEXTURE_COLOR_DIFFUSION Diffusion BOOL  
BAKETEXTURE_LUMINANCE_DIFFUSION Diffusion BOOL  
BAKETEXTURE_ILLUMINATION_SHADOWS Shadows BOOL  
BAKETEXTURE_NORMAL_SOURCE Source LINK ANIM
BAKETEXTURE_NORMAL_METHOD Method LONG  
BAKETEXTURE_NORMAL_METHOD_OBJECT Object
BAKETEXTURE_NORMAL_METHOD_TANGENT Tangent
BAKETEXTURE_NORMAL_METHOD_WORLD World
BAKETEXTURE_NORMAL_FLIP_X FlipX BOOL  
BAKETEXTURE_NORMAL_FLIP_Y FlipY BOOL  
BAKETEXTURE_NORMAL_FLIP_Z FlipZ BOOL  
BAKETEXTURE_NORMAL_SWAP_YZ SwapY&Z BOOL  
BAKETEXTURE_AO_SELFINTERSECTION SelfShadowingOnly BOOL  
BAKETEXTURE_AO_TO_VERTEX ToVertexMap BOOL  
BAKETEXTURE_DISPLACEMENT_SOURCE Source LINK ANIM
BAKETEXTURE_DISPLACEMENT_HEIGHT Height REAL
UNIT METER
ANIM OFF
BAKETEXTURE_DISPLACEMENT_METHOD Method LONG  
BAKETEXTURE_DISPLACEMENT_METHOD_INTENSITY Intensity
BAKETEXTURE_DISPLACEMENT_METHOD_CENTEREDINTENSITY Intensity(Centered)
BAKETEXTURE_DISPLACEMENT_METHOD_REDGREEN Red/Green
BAKETEXTURE_DISPLACEMENT_METHOD_OBJECT RGB(XYZObject)
BAKETEXTURE_DISPLACEMENT_METHOD_TANGENT RGB(XYZTangent)
BAKETEXTURE_DISPLACEMENT_METHOD_WORLD RGB(XYZWorld)
BAKETEXTURE_DISPLACEMENT_SUBPOLY SubPolygonDisplacement BOOL  
BAKETEXTURE_DISPLACEMENT_SUBPOLY_SUBDIVISION SubdivisionLevel LONG
MIN 1
MAX 12
BAKETEXTURE_DISPLACEMENT_SUBPOLY_ROUND RoundGeometry BOOL  
BAKETEXTURE_DISPLACEMENT_SUBPOLY_ROUNDCONTOUR RoundContour BOOL  
BAKETEXTURE_DISPLACEMENT_SUBPOLY_HQREMAPPING MapRoundedGeometry BOOL  
BAKETEXTURE_DISPLACEMENT_SUBPOLY_MAPRESULT MapResultingGeometry BOOL  
BAKETEXTURE_DISPLACEMENT_SUBPOLY_KEEPEDGES KeepOriginalEdges BOOL  
BAKETEXTURE_DISPLACEMENT_SUBPOLY_DISTRIBUTION BestDistribution BOOL  
BAKETEXTURE_RAYCAST_USE_MAX_DISTANCE UseMaxRayCastDistance BOOL ANIM
BAKETEXTURE_RAYCAST_CUSTOM_MAX_DISTANCE CustomRayCastDistance REAL
UNIT METER
MIN 0.0
ANIM OFF
BAKETEXTURE_RAYCAST_USE_AUTO_SPIKE_THRESHOLD UseAutoSpikeFilterThreshold BOOL ANIM
BAKETEXTURE_RAYCAST_CUSTOM_SPIKE_THRESHOLD CustomSpikeFilterThreshold REAL
MIN 0
MAX 100
ANIM OFF
BAKETEXTURE_MAPPING AutoUV LONG  
BAKETEXTURE_MAPPING_OFF Off
BAKETEXTURE_MAPPING_PACKED Packed
BAKETEXTURE_MAPPING_CUBIC Cubic
BAKETEXTURE_MAPPING_ANGLE Angle
BAKETEXTURE_RELAXCOUNT Relax LONG MIN
BAKETEXTURE_BAKE Bake BUTTON  
BAKETEXTURE_STOP Stop BUTTON  
BAKETEXTURE_DELETE Delete BUTTON  
BAKETEXTURE_BAKE_PREVIEW Preview BUTTON  
BAKETEXTURE_PREVIEW MATPREVIEW
OPEN
MIN_WIDTH 150
MIN_HEIGHT 150
RECTSELECT
BAKETEXTURE_USE_CURRENT UseCurrentRenderData BOOL  
BAKETEXTURE_TIME_MIN StartTime BASETIME  
BAKETEXTURE_TIME_MAX EndTime BASETIME  
BAKETEXTURE_FPS FrameRate LONG MIN
BAKETEXTURE_NAME_FORMAT NameFormat LONG  
BAKETEXTURE_NAME_0000_TIF Name.0000.tif
BAKETEXTURE_NAME0000_TIF Name0000.tif
BAKETEXTURE_NAME0000 Name0000
BAKETEXTURE_NAME_0000 Name.0000
BAKETEXTURE_NAME000_TIF Name000.tif
BAKETEXTURE_NAME000 Name000
BAKETEXTURE_NAME_000 Name.000
BAKETEXTURE_TAGLIST MaterialTags IN_EXCLUDE
NUM_FLAGS 0
INIT_STATE 0
ANIM OFF

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.TBakeTexture)
    doc.InsertObject(obj)
    c4d.EventAdd(c4d.EVENT_FORCEREDRAW)
    
    #You can set parameters two different ways. 
    #First way              
    tag[c4d.BAKETEXTURE_NAME] = "c:\\SomeFile.txt"
    tag[c4d.BAKETEXTURE_FORMAT] = 1
    tag[c4d.BAKETEXTURE_SINGLEFILE] = True
    tag[c4d.BAKETEXTURE_COLOR_DEPTH] = 1
    tag[c4d.BAKETEXTURE_AUTOSIZE] = True
    tag[c4d.BAKETEXTURE_WIDTH] = 1
    tag[c4d.BAKETEXTURE_HEIGHT] = 1
    tag[c4d.BAKETEXTURE_AUTO_MIN] = 1
    tag[c4d.BAKETEXTURE_AUTO_MAX] = 1
    tag[c4d.BAKETEXTURE_AUTO_PIXEL_SIZE] = 0.1
    tag[c4d.BAKETEXTURE_SUPERSAMPLING] = 1
    tag[c4d.BAKETEXTURE_PIXELBORDER] = 1
    tag[c4d.BAKETEXTURE_CONTINUE_UV] = True
    tag[c4d.BAKETEXTURE_USE_POLYSELECTION] = True
    tag[c4d.BAKETEXTURE_USE_BUMP] = True
    tag[c4d.BAKETEXTURE_USE_CAMERA_VECTOR] = True
    tag[c4d.BAKETEXTURE_CHANNEL_COLOR] = True
    tag[c4d.BAKETEXTURE_CHANNEL_LUMINANCE] = True
    tag[c4d.BAKETEXTURE_CHANNEL_DIFFUSION] = True
    tag[c4d.BAKETEXTURE_CHANNEL_BUMP] = True
    tag[c4d.BAKETEXTURE_CHANNEL_ALPHA] = True
    tag[c4d.BAKETEXTURE_CHANNEL_TRANS] = True
    tag[c4d.BAKETEXTURE_CHANNEL_DISPLACEMENT] = True
    tag[c4d.BAKETEXTURE_CHANNEL_S_COLOR] = True
    tag[c4d.BAKETEXTURE_CHANNEL_ILLUMINATION] = True
    tag[c4d.BAKETEXTURE_CHANNEL_SHADOWS] = True
    tag[c4d.BAKETEXTURE_CHANNEL_AO] = True
    tag[c4d.BAKETEXTURE_CHANNEL_NORMAL] = True
    tag[c4d.BAKETEXTURE_CHANNEL_UVMAP] = True
    tag[c4d.BAKETEXTURE_CHANNEL_REFLECTION] = True
    tag[c4d.BAKETEXTURE_COLOR_ILLUM] = True
    tag[c4d.BAKETEXTURE_COLOR_SHADOWS] = True
    tag[c4d.BAKETEXTURE_COLOR_LUMINANCE] = True
    tag[c4d.BAKETEXTURE_COLOR_DIFFUSION] = True
    tag[c4d.BAKETEXTURE_LUMINANCE_DIFFUSION] = True
    tag[c4d.BAKETEXTURE_ILLUMINATION_SHADOWS] = True
    tag[c4d.BAKETEXTURE_NORMAL_METHOD] = c4d.BAKETEXTURE_NORMAL_METHOD_OBJECT
    tag[c4d.BAKETEXTURE_NORMAL_FLIP_X] = True
    tag[c4d.BAKETEXTURE_NORMAL_FLIP_Y] = True
    tag[c4d.BAKETEXTURE_NORMAL_FLIP_Z] = True
    tag[c4d.BAKETEXTURE_NORMAL_SWAP_YZ] = True
    tag[c4d.BAKETEXTURE_AO_SELFINTERSECTION] = True
    tag[c4d.BAKETEXTURE_AO_TO_VERTEX] = True
    tag[c4d.BAKETEXTURE_DISPLACEMENT_HEIGHT] = 0.1
    tag[c4d.BAKETEXTURE_DISPLACEMENT_METHOD] = c4d.BAKETEXTURE_DISPLACEMENT_METHOD_INTENSITY
    tag[c4d.BAKETEXTURE_DISPLACEMENT_SUBPOLY] = True
    tag[c4d.BAKETEXTURE_DISPLACEMENT_SUBPOLY_SUBDIVISION] = 1
    tag[c4d.BAKETEXTURE_DISPLACEMENT_SUBPOLY_ROUND] = True
    tag[c4d.BAKETEXTURE_DISPLACEMENT_SUBPOLY_ROUNDCONTOUR] = True
    tag[c4d.BAKETEXTURE_DISPLACEMENT_SUBPOLY_HQREMAPPING] = True
    tag[c4d.BAKETEXTURE_DISPLACEMENT_SUBPOLY_MAPRESULT] = True
    tag[c4d.BAKETEXTURE_DISPLACEMENT_SUBPOLY_KEEPEDGES] = True
    tag[c4d.BAKETEXTURE_DISPLACEMENT_SUBPOLY_DISTRIBUTION] = True
    tag[c4d.BAKETEXTURE_RAYCAST_USE_MAX_DISTANCE] = True
    tag[c4d.BAKETEXTURE_RAYCAST_CUSTOM_MAX_DISTANCE] = 0.1
    tag[c4d.BAKETEXTURE_RAYCAST_USE_AUTO_SPIKE_THRESHOLD] = True
    tag[c4d.BAKETEXTURE_RAYCAST_CUSTOM_SPIKE_THRESHOLD] = 0.1
    tag[c4d.BAKETEXTURE_MAPPING] = c4d.BAKETEXTURE_MAPPING_OFF
    tag[c4d.BAKETEXTURE_RELAXCOUNT] = 1
    tag[c4d.BAKETEXTURE_USE_CURRENT] = True
    tag[c4d.BAKETEXTURE_FPS] = 1
    tag[c4d.BAKETEXTURE_NAME_FORMAT] = c4d.BAKETEXTURE_NAME_0000_TIF
    
    #Second way, using the base container.
    bc = tag.GetDataInstance()
    bc.SetFileName(c4d.BAKETEXTURE_NAME,"c:\\SomeFile.txt")
    bc.SetInt32(c4d.BAKETEXTURE_FORMAT,1)
    bc.SetBool(c4d.BAKETEXTURE_SINGLEFILE,True)
    bc.SetInt32(c4d.BAKETEXTURE_COLOR_DEPTH,1)
    bc.SetBool(c4d.BAKETEXTURE_AUTOSIZE,True)
    bc.SetInt32(c4d.BAKETEXTURE_WIDTH,1)
    bc.SetInt32(c4d.BAKETEXTURE_HEIGHT,1)
    bc.SetInt32(c4d.BAKETEXTURE_AUTO_MIN,1)
    bc.SetInt32(c4d.BAKETEXTURE_AUTO_MAX,1)
    bc.SetFloat(c4d.BAKETEXTURE_AUTO_PIXEL_SIZE,0.1)
    bc.SetInt32(c4d.BAKETEXTURE_SUPERSAMPLING,1)
    bc.SetInt32(c4d.BAKETEXTURE_PIXELBORDER,1)
    bc.SetBool(c4d.BAKETEXTURE_CONTINUE_UV,True)
    bc.SetBool(c4d.BAKETEXTURE_USE_POLYSELECTION,True)
    bc.SetBool(c4d.BAKETEXTURE_USE_BUMP,True)
    bc.SetBool(c4d.BAKETEXTURE_USE_CAMERA_VECTOR,True)
    bc.SetBool(c4d.BAKETEXTURE_CHANNEL_COLOR,True)
    bc.SetBool(c4d.BAKETEXTURE_CHANNEL_LUMINANCE,True)
    bc.SetBool(c4d.BAKETEXTURE_CHANNEL_DIFFUSION,True)
    bc.SetBool(c4d.BAKETEXTURE_CHANNEL_BUMP,True)
    bc.SetBool(c4d.BAKETEXTURE_CHANNEL_ALPHA,True)
    bc.SetBool(c4d.BAKETEXTURE_CHANNEL_TRANS,True)
    bc.SetBool(c4d.BAKETEXTURE_CHANNEL_DISPLACEMENT,True)
    bc.SetBool(c4d.BAKETEXTURE_CHANNEL_S_COLOR,True)
    bc.SetBool(c4d.BAKETEXTURE_CHANNEL_ILLUMINATION,True)
    bc.SetBool(c4d.BAKETEXTURE_CHANNEL_SHADOWS,True)
    bc.SetBool(c4d.BAKETEXTURE_CHANNEL_AO,True)
    bc.SetBool(c4d.BAKETEXTURE_CHANNEL_NORMAL,True)
    bc.SetBool(c4d.BAKETEXTURE_CHANNEL_UVMAP,True)
    bc.SetBool(c4d.BAKETEXTURE_CHANNEL_REFLECTION,True)
    bc.SetBool(c4d.BAKETEXTURE_COLOR_ILLUM,True)
    bc.SetBool(c4d.BAKETEXTURE_COLOR_SHADOWS,True)
    bc.SetBool(c4d.BAKETEXTURE_COLOR_LUMINANCE,True)
    bc.SetBool(c4d.BAKETEXTURE_COLOR_DIFFUSION,True)
    bc.SetBool(c4d.BAKETEXTURE_LUMINANCE_DIFFUSION,True)
    bc.SetBool(c4d.BAKETEXTURE_ILLUMINATION_SHADOWS,True)
    bc.SetInt32(c4d.BAKETEXTURE_NORMAL_METHOD,c4d.BAKETEXTURE_NORMAL_METHOD_OBJECT)
    bc.SetBool(c4d.BAKETEXTURE_NORMAL_FLIP_X,True)
    bc.SetBool(c4d.BAKETEXTURE_NORMAL_FLIP_Y,True)
    bc.SetBool(c4d.BAKETEXTURE_NORMAL_FLIP_Z,True)
    bc.SetBool(c4d.BAKETEXTURE_NORMAL_SWAP_YZ,True)
    bc.SetBool(c4d.BAKETEXTURE_AO_SELFINTERSECTION,True)
    bc.SetBool(c4d.BAKETEXTURE_AO_TO_VERTEX,True)
    bc.SetFloat(c4d.BAKETEXTURE_DISPLACEMENT_HEIGHT,0.1)
    bc.SetInt32(c4d.BAKETEXTURE_DISPLACEMENT_METHOD,c4d.BAKETEXTURE_DISPLACEMENT_METHOD_INTENSITY)
    bc.SetBool(c4d.BAKETEXTURE_DISPLACEMENT_SUBPOLY,True)
    bc.SetInt32(c4d.BAKETEXTURE_DISPLACEMENT_SUBPOLY_SUBDIVISION,1)
    bc.SetBool(c4d.BAKETEXTURE_DISPLACEMENT_SUBPOLY_ROUND,True)
    bc.SetBool(c4d.BAKETEXTURE_DISPLACEMENT_SUBPOLY_ROUNDCONTOUR,True)
    bc.SetBool(c4d.BAKETEXTURE_DISPLACEMENT_SUBPOLY_HQREMAPPING,True)
    bc.SetBool(c4d.BAKETEXTURE_DISPLACEMENT_SUBPOLY_MAPRESULT,True)
    bc.SetBool(c4d.BAKETEXTURE_DISPLACEMENT_SUBPOLY_KEEPEDGES,True)
    bc.SetBool(c4d.BAKETEXTURE_DISPLACEMENT_SUBPOLY_DISTRIBUTION,True)
    bc.SetBool(c4d.BAKETEXTURE_RAYCAST_USE_MAX_DISTANCE,True)
    bc.SetFloat(c4d.BAKETEXTURE_RAYCAST_CUSTOM_MAX_DISTANCE,0.1)
    bc.SetBool(c4d.BAKETEXTURE_RAYCAST_USE_AUTO_SPIKE_THRESHOLD,True)
    bc.SetFloat(c4d.BAKETEXTURE_RAYCAST_CUSTOM_SPIKE_THRESHOLD,0.1)
    bc.SetInt32(c4d.BAKETEXTURE_MAPPING,c4d.BAKETEXTURE_MAPPING_OFF)
    bc.SetInt32(c4d.BAKETEXTURE_RELAXCOUNT,1)
    bc.SetBool(c4d.BAKETEXTURE_USE_CURRENT,True)
    bc.SetInt32(c4d.BAKETEXTURE_FPS,1)
    bc.SetInt32(c4d.BAKETEXTURE_NAME_FORMAT,c4d.BAKETEXTURE_NAME_0000_TIF)

if __name__=='__main__':
    main()
             

C++

#include "c4d.h"
#include "../sla/description/tbaketexture.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(TBakeTexture);
    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(BAKETEXTURE_NAME),GeData(Filename("c:\\SomeFile.txt"),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_FORMAT),GeData(1),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_SINGLEFILE),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_COLOR_DEPTH),GeData(1),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_AUTOSIZE),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_WIDTH),GeData(1),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_HEIGHT),GeData(1),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_AUTO_MIN),GeData(1),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_AUTO_MAX),GeData(1),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_AUTO_PIXEL_SIZE),GeData(0.1),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_SUPERSAMPLING),GeData(1),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_PIXELBORDER),GeData(1),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_CONTINUE_UV),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_USE_POLYSELECTION),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_USE_BUMP),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_USE_CAMERA_VECTOR),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_CHANNEL_COLOR),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_CHANNEL_LUMINANCE),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_CHANNEL_DIFFUSION),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_CHANNEL_BUMP),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_CHANNEL_ALPHA),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_CHANNEL_TRANS),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_CHANNEL_DISPLACEMENT),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_CHANNEL_S_COLOR),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_CHANNEL_ILLUMINATION),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_CHANNEL_SHADOWS),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_CHANNEL_AO),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_CHANNEL_NORMAL),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_CHANNEL_UVMAP),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_CHANNEL_REFLECTION),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_COLOR_ILLUM),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_COLOR_SHADOWS),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_COLOR_LUMINANCE),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_COLOR_DIFFUSION),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_LUMINANCE_DIFFUSION),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_ILLUMINATION_SHADOWS),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_NORMAL_METHOD),GeData(BAKETEXTURE_NORMAL_METHOD_OBJECT),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_NORMAL_FLIP_X),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_NORMAL_FLIP_Y),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_NORMAL_FLIP_Z),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_NORMAL_SWAP_YZ),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_AO_SELFINTERSECTION),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_AO_TO_VERTEX),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_DISPLACEMENT_HEIGHT),GeData(0.1),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_DISPLACEMENT_METHOD),GeData(BAKETEXTURE_DISPLACEMENT_METHOD_INTENSITY),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_DISPLACEMENT_SUBPOLY),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_DISPLACEMENT_SUBPOLY_SUBDIVISION),GeData(1),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_DISPLACEMENT_SUBPOLY_ROUND),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_DISPLACEMENT_SUBPOLY_ROUNDCONTOUR),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_DISPLACEMENT_SUBPOLY_HQREMAPPING),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_DISPLACEMENT_SUBPOLY_MAPRESULT),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_DISPLACEMENT_SUBPOLY_KEEPEDGES),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_DISPLACEMENT_SUBPOLY_DISTRIBUTION),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_RAYCAST_USE_MAX_DISTANCE),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_RAYCAST_CUSTOM_MAX_DISTANCE),GeData(0.1),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_RAYCAST_USE_AUTO_SPIKE_THRESHOLD),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_RAYCAST_CUSTOM_SPIKE_THRESHOLD),GeData(0.1),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_MAPPING),GeData(BAKETEXTURE_MAPPING_OFF),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_RELAXCOUNT),GeData(1),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_USE_CURRENT),GeData(true),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_FPS),GeData(1),flags);
    pTag->SetParameter(DescID(BAKETEXTURE_NAME_FORMAT),GeData(BAKETEXTURE_NAME_0000_TIF),flags);
    pTag->Message(MSG_UPDATE);            

    //Second way, using the base container.
    BaseContainer *bc =     pTag->GetDataInstance();
    bc->SetFileName(BAKETEXTURE_NAME,"c:\\SomeFile.txt");
    bc->SetInt32(BAKETEXTURE_FORMAT,1);
    bc->SetBool(BAKETEXTURE_SINGLEFILE,true);
    bc->SetInt32(BAKETEXTURE_COLOR_DEPTH,1);
    bc->SetBool(BAKETEXTURE_AUTOSIZE,true);
    bc->SetInt32(BAKETEXTURE_WIDTH,1);
    bc->SetInt32(BAKETEXTURE_HEIGHT,1);
    bc->SetInt32(BAKETEXTURE_AUTO_MIN,1);
    bc->SetInt32(BAKETEXTURE_AUTO_MAX,1);
    bc->SetFloat(BAKETEXTURE_AUTO_PIXEL_SIZE,0.1);
    bc->SetInt32(BAKETEXTURE_SUPERSAMPLING,1);
    bc->SetInt32(BAKETEXTURE_PIXELBORDER,1);
    bc->SetBool(BAKETEXTURE_CONTINUE_UV,true);
    bc->SetBool(BAKETEXTURE_USE_POLYSELECTION,true);
    bc->SetBool(BAKETEXTURE_USE_BUMP,true);
    bc->SetBool(BAKETEXTURE_USE_CAMERA_VECTOR,true);
    bc->SetBool(BAKETEXTURE_CHANNEL_COLOR,true);
    bc->SetBool(BAKETEXTURE_CHANNEL_LUMINANCE,true);
    bc->SetBool(BAKETEXTURE_CHANNEL_DIFFUSION,true);
    bc->SetBool(BAKETEXTURE_CHANNEL_BUMP,true);
    bc->SetBool(BAKETEXTURE_CHANNEL_ALPHA,true);
    bc->SetBool(BAKETEXTURE_CHANNEL_TRANS,true);
    bc->SetBool(BAKETEXTURE_CHANNEL_DISPLACEMENT,true);
    bc->SetBool(BAKETEXTURE_CHANNEL_S_COLOR,true);
    bc->SetBool(BAKETEXTURE_CHANNEL_ILLUMINATION,true);
    bc->SetBool(BAKETEXTURE_CHANNEL_SHADOWS,true);
    bc->SetBool(BAKETEXTURE_CHANNEL_AO,true);
    bc->SetBool(BAKETEXTURE_CHANNEL_NORMAL,true);
    bc->SetBool(BAKETEXTURE_CHANNEL_UVMAP,true);
    bc->SetBool(BAKETEXTURE_CHANNEL_REFLECTION,true);
    bc->SetBool(BAKETEXTURE_COLOR_ILLUM,true);
    bc->SetBool(BAKETEXTURE_COLOR_SHADOWS,true);
    bc->SetBool(BAKETEXTURE_COLOR_LUMINANCE,true);
    bc->SetBool(BAKETEXTURE_COLOR_DIFFUSION,true);
    bc->SetBool(BAKETEXTURE_LUMINANCE_DIFFUSION,true);
    bc->SetBool(BAKETEXTURE_ILLUMINATION_SHADOWS,true);
    bc->SetInt32(BAKETEXTURE_NORMAL_METHOD,BAKETEXTURE_NORMAL_METHOD_OBJECT);
    bc->SetBool(BAKETEXTURE_NORMAL_FLIP_X,true);
    bc->SetBool(BAKETEXTURE_NORMAL_FLIP_Y,true);
    bc->SetBool(BAKETEXTURE_NORMAL_FLIP_Z,true);
    bc->SetBool(BAKETEXTURE_NORMAL_SWAP_YZ,true);
    bc->SetBool(BAKETEXTURE_AO_SELFINTERSECTION,true);
    bc->SetBool(BAKETEXTURE_AO_TO_VERTEX,true);
    bc->SetFloat(BAKETEXTURE_DISPLACEMENT_HEIGHT,0.1);
    bc->SetInt32(BAKETEXTURE_DISPLACEMENT_METHOD,BAKETEXTURE_DISPLACEMENT_METHOD_INTENSITY);
    bc->SetBool(BAKETEXTURE_DISPLACEMENT_SUBPOLY,true);
    bc->SetInt32(BAKETEXTURE_DISPLACEMENT_SUBPOLY_SUBDIVISION,1);
    bc->SetBool(BAKETEXTURE_DISPLACEMENT_SUBPOLY_ROUND,true);
    bc->SetBool(BAKETEXTURE_DISPLACEMENT_SUBPOLY_ROUNDCONTOUR,true);
    bc->SetBool(BAKETEXTURE_DISPLACEMENT_SUBPOLY_HQREMAPPING,true);
    bc->SetBool(BAKETEXTURE_DISPLACEMENT_SUBPOLY_MAPRESULT,true);
    bc->SetBool(BAKETEXTURE_DISPLACEMENT_SUBPOLY_KEEPEDGES,true);
    bc->SetBool(BAKETEXTURE_DISPLACEMENT_SUBPOLY_DISTRIBUTION,true);
    bc->SetBool(BAKETEXTURE_RAYCAST_USE_MAX_DISTANCE,true);
    bc->SetFloat(BAKETEXTURE_RAYCAST_CUSTOM_MAX_DISTANCE,0.1);
    bc->SetBool(BAKETEXTURE_RAYCAST_USE_AUTO_SPIKE_THRESHOLD,true);
    bc->SetFloat(BAKETEXTURE_RAYCAST_CUSTOM_SPIKE_THRESHOLD,0.1);
    bc->SetInt32(BAKETEXTURE_MAPPING,BAKETEXTURE_MAPPING_OFF);
    bc->SetInt32(BAKETEXTURE_RELAXCOUNT,1);
    bc->SetBool(BAKETEXTURE_USE_CURRENT,true);
    bc->SetInt32(BAKETEXTURE_FPS,1);
    bc->SetInt32(BAKETEXTURE_NAME_FORMAT,BAKETEXTURE_NAME_0000_TIF);
    pTag->Message(MSG_UPDATE);                                                      
}
             

Buttons

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

Python

c4d.CallButton(tag,c4d.BAKETEXTURE_OPTIONS_BTN)
c4d.CallButton(tag,c4d.BAKETEXTURE_BAKE)
c4d.CallButton(tag,c4d.BAKETEXTURE_STOP)
c4d.CallButton(tag,c4d.BAKETEXTURE_DELETE)
c4d.CallButton(tag,c4d.BAKETEXTURE_BAKE_PREVIEW)

C++

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

DescriptionCommand dc; dc.id = DescID(BAKETEXTURE_BAKE); pTag->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(BAKETEXTURE_STOP); pTag->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(BAKETEXTURE_DELETE); pTag->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(BAKETEXTURE_BAKE_PREVIEW); pTag->Message(MSG_DESCRIPTION_COMMAND, &dc);