Ocharacterbase
Attributes
-
ENGLISH NAME : Character
-
NAME : Ocharacterbase
-
INCLUDE : Obase
-
PATH : ca/description/ocharacterbase.res
-
PLUGIN : ca
-
MAXON online help (may not exist): OCHARACTERBASE
Elements
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.Ocharacterbase)
doc.InsertObject(obj)
c4d.EventAdd(c4d.EVENT_FORCEREDRAW)
#You can set parameters two different ways.
#First way
obj[c4d.ID_CA_CHARACTER_TYPE] = c4d.ID_CA_CHARACTER_TYPE_NONE
obj[c4d.ID_CA_CHARACTER_TYPE_AUTO_SIZE] = True
obj[c4d.ID_CA_CHARACTER_TYPE_SIZE] = 0.1
obj[c4d.ID_CA_CHARACTER_TYPE_NAME] = "Hello World"
obj[c4d.ID_CA_CHARACTER_DEBUG] = True
obj[c4d.ID_CA_CHARACTER_MODE] = c4d.ID_CA_CHARACTER_MODE_BUILD
obj[c4d.ID_CA_CHARACTER_PROTECT] = True
obj[c4d.ID_CA_ADJUST_MODE] = c4d.ID_CA_ADJUST_MODE_COMPONENT
obj[c4d.ID_CA_CHARACTER_ADJUST_SYMMETRY] = True
obj[c4d.ID_CA_CHARACTER_ADJUST_SYMMETRY_ORIGIN] = c4d.ID_CA_CHARACTER_ADJUST_SYMMETRY_ORIGIN_DEFAULT
obj[c4d.ID_CA_CHARACTER_ADJUST_SYMMETRY_PLANE] = c4d.ID_CA_CHARACTER_ADJUST_SYMMETRY_PLANE_DEFAULT
obj[c4d.ID_CA_CHARACTER_ADJUST_SYMMETRY_SEARCH_DISTANCE] = True
obj[c4d.ID_CA_CHARACTER_ADJUST_SYMMETRY_RAD] = 0.1
obj[c4d.ID_CA_CHARACTER_ADJUST_SYMMETRY_SEARCH_NAME] = True
obj[c4d.ID_CA_CHARACTER_ADJUST_SYMMETRY_SEARCH_NAME_CASE] = True
obj[c4d.ID_CA_CHARACTER_ADJUST_SYMMETRY_SEARCH_NAME_REPLACE] = "Hello World"
obj[c4d.ID_CA_CHARACTER_ADJUST_SYMMETRY_SEARCH_NAME_WITH] = "Hello World"
obj[c4d.ID_CA_CHARACTER_AUTO_ALIGN] = c4d.ID_CA_CHARACTER_AUTO_ALIGN_OFF
obj[c4d.ID_CA_CHARACTER_ADJUST_FILTER] = c4d.ID_CA_CHARACTER_ADJUST_FILTER_ALL
obj[c4d.ID_CA_CHARACTER_TEMPLATE] = 1
obj[c4d.ID_CA_CHARACTER_BONE_COUNT] = 1
obj[c4d.ID_CA_CHARACTER_BONE_LENGTH] = 0.1
obj[c4d.ID_CA_CHARACTER_COMPONENT_NAME] = "Hello World"
obj[c4d.ID_CA_CHARACTER_OBJECT_NAME] = "Hello World"
obj[c4d.ID_CA_CHARACTER_COMPONENT_NOTES] = "Hello World"
obj[c4d.ID_CA_CHARACTER_DIGITS_COUNT] = 1
obj[c4d.ID_CA_CHARACTER_DIGITS_SHOWALL] = True
obj[c4d.ID_CA_CHARACTER_GROUP_DIGITS_POSES_ENABLE] = True
obj[c4d.ID_CA_CHARACTER_GROUP_DIGITS_POSES_SELECTED] = True
obj[c4d.ID_CA_CHARACTER_GROUP_DIGITS_POSES_MIX] = 0.1
obj[c4d.ID_CA_CHARACTER_COMPONENT_HIGHLIGHT_SELECTED] = c4d.ID_CA_CHARACTER_COMPONENT_HIGHLIGHT_NONE
obj[c4d.ID_CA_CHARACTER_COMPONENT_HIGHLIGHT_OVER] = c4d.ID_CA_CHARACTER_COMPONENT_HIGHLIGHT_NONE
obj[c4d.ID_CA_CHARACTER_COMPONENT_MOUSEOVER] = c4d.ID_CA_CHARACTER_COMPONENT_MOUSEOVER_NONE
obj[c4d.ID_CA_CHARACTER_COMPONENT_VISIBLE] = c4d.ID_CA_CHARACTER_COMPONENT_HIGHLIGHT_NONE
obj[c4d.ID_CA_CHARACTER_COMPONENT_DISPLAY_HANDLE_SCREEN_SIZE] = 0.1
obj[c4d.ID_CA_CHARACTER_COMPONENT_DISPLAY_HANDLE_UNITS] = c4d.ID_CA_CHARACTER_COMPONENT_DISPLAY_HANDLE_UNITS_WORLD
obj[c4d.ID_CA_CHARACTER_COMPONENT_ADJUST_DISPLAY] = c4d.ID_CA_CHARACTER_COMPONENT_ADJUST_DISPLAY_CUBE
obj[c4d.ID_CA_CHARACTER_ADJUST_COLORING] = c4d.ID_CA_CHARACTER_ADJUST_COLORING_SINGLE
obj[c4d.ID_CA_CHARACTER_ADJUST_HANDLES] = c4d.ID_CA_CHARACTER_ADJUST_HANDLES_FIXED
obj[c4d.ID_CA_CHARACTER_COMPONENT_HANDLE_JOINTS] = c4d.ID_CA_CHARACTER_COMPONENT_HANDLE_JOINTS_DEFAULT
obj[c4d.ID_CA_CHARACTER_JOINT_COLORING] = c4d.ID_CA_CHARACTER_JOINT_COLORS_DEFAULT
obj[c4d.ID_CA_CHARACTER_ACTIVE_COLOR_MIX] = 0.1
obj[c4d.ID_CA_CHARACTER_HIGHLIGHT_COLOR_MIX] = 0.1
obj[c4d.ID_CA_CHARACTER_ICON_TYPES] = c4d.ID_CA_CHARACTER_ICON_TYPES_TEMPLATE
obj[c4d.ID_CA_CHARACTER_ICON_COLORIZE] = True
obj[c4d.ID_CA_CHARACTER_BONE_DISPLAY] = c4d.ID_CA_CHARACTER_BONE_DISPLAY_DEFAULT
obj[c4d.ID_CA_CHARACTER_JOINT_DISPLAY] = c4d.ID_CA_CHARACTER_JOINT_DISPLAY_DEFAULT
obj[c4d.ID_CA_CHARACTER_OM_DISPLAY] = c4d.ID_CA_CHARACTER_OM_DISPLAY_NONE
obj[c4d.ID_CA_CHARACTER_LOCK_AM] = True
obj[c4d.ID_CA_CHARACTER_NAMING_COMPONENT] = True
obj[c4d.ID_CA_CHARACTER_NAMING_OBJECTS] = True
obj[c4d.ID_CA_CHARACTER_NAMING_CONTROLLERS] = True
obj[c4d.ID_CA_CHARACTER_NAMING_PRE] = "Hello World"
obj[c4d.ID_CA_CHARACTER_NAMING_POST] = "Hello World"
obj[c4d.ID_CA_CHARACTER_NAMING_REPLACE] = "Hello World"
obj[c4d.ID_CA_CHARACTER_NAMING_REPLACE_WITH] = "Hello World"
obj[c4d.ID_CA_CHARACTER_NAMING_CASE] = True
obj[c4d.ID_CA_CHARACTER_NAMING_LABEL] = c4d.ID_CA_CHARACTER_NAMING_LABEL_NONE
obj[c4d.ID_CA_CHARACTER_NAMING_LABEL_COMPONENTS] = c4d.ID_CA_CHARACTER_NAMING_LABEL_NONE
obj[c4d.ID_CA_CHARACTER_NAMING_LABEL_OBJECTS] = c4d.ID_CA_CHARACTER_NAMING_LABEL_NONE
obj[c4d.ID_CA_CHARACTER_NAMING_LABEL_CONTROLLERS] = c4d.ID_CA_CHARACTER_NAMING_LABEL_NONE
obj[c4d.ID_CA_CHARACTER_NAMING_SEPARATOR] = c4d.ID_CA_CHARACTER_NAMING_SEPARATOR_DOT
obj[c4d.ID_CA_CHARACTER_NAMING_SEPARATOR_TXT] = "Hello World"
obj[c4d.ID_CA_CHARACTER_EXPRESSIONS_PASSES] = 1
#Second way, using the base container.
bc = obj.GetDataInstance()
bc.SetInt32(c4d.ID_CA_CHARACTER_TYPE,c4d.ID_CA_CHARACTER_TYPE_NONE)
bc.SetBool(c4d.ID_CA_CHARACTER_TYPE_AUTO_SIZE,True)
bc.SetFloat(c4d.ID_CA_CHARACTER_TYPE_SIZE,0.1)
bc.SetString(c4d.ID_CA_CHARACTER_TYPE_NAME,"Hello World")
bc.SetBool(c4d.ID_CA_CHARACTER_DEBUG,True)
bc.SetInt32(c4d.ID_CA_CHARACTER_MODE,c4d.ID_CA_CHARACTER_MODE_BUILD)
bc.SetBool(c4d.ID_CA_CHARACTER_PROTECT,True)
bc.SetInt32(c4d.ID_CA_ADJUST_MODE,c4d.ID_CA_ADJUST_MODE_COMPONENT)
bc.SetBool(c4d.ID_CA_CHARACTER_ADJUST_SYMMETRY,True)
bc.SetInt32(c4d.ID_CA_CHARACTER_ADJUST_SYMMETRY_ORIGIN,c4d.ID_CA_CHARACTER_ADJUST_SYMMETRY_ORIGIN_DEFAULT)
bc.SetInt32(c4d.ID_CA_CHARACTER_ADJUST_SYMMETRY_PLANE,c4d.ID_CA_CHARACTER_ADJUST_SYMMETRY_PLANE_DEFAULT)
bc.SetBool(c4d.ID_CA_CHARACTER_ADJUST_SYMMETRY_SEARCH_DISTANCE,True)
bc.SetFloat(c4d.ID_CA_CHARACTER_ADJUST_SYMMETRY_RAD,0.1)
bc.SetBool(c4d.ID_CA_CHARACTER_ADJUST_SYMMETRY_SEARCH_NAME,True)
bc.SetBool(c4d.ID_CA_CHARACTER_ADJUST_SYMMETRY_SEARCH_NAME_CASE,True)
bc.SetString(c4d.ID_CA_CHARACTER_ADJUST_SYMMETRY_SEARCH_NAME_REPLACE,"Hello World")
bc.SetString(c4d.ID_CA_CHARACTER_ADJUST_SYMMETRY_SEARCH_NAME_WITH,"Hello World")
bc.SetInt32(c4d.ID_CA_CHARACTER_AUTO_ALIGN,c4d.ID_CA_CHARACTER_AUTO_ALIGN_OFF)
bc.SetInt32(c4d.ID_CA_CHARACTER_ADJUST_FILTER,c4d.ID_CA_CHARACTER_ADJUST_FILTER_ALL)
bc.SetInt32(c4d.ID_CA_CHARACTER_TEMPLATE,1)
bc.SetInt32(c4d.ID_CA_CHARACTER_BONE_COUNT,1)
bc.SetFloat(c4d.ID_CA_CHARACTER_BONE_LENGTH,0.1)
bc.SetString(c4d.ID_CA_CHARACTER_COMPONENT_NAME,"Hello World")
bc.SetString(c4d.ID_CA_CHARACTER_OBJECT_NAME,"Hello World")
bc.SetString(c4d.ID_CA_CHARACTER_COMPONENT_NOTES,"Hello World")
bc.SetInt32(c4d.ID_CA_CHARACTER_DIGITS_COUNT,1)
bc.SetBool(c4d.ID_CA_CHARACTER_DIGITS_SHOWALL,True)
bc.SetBool(c4d.ID_CA_CHARACTER_GROUP_DIGITS_POSES_ENABLE,True)
bc.SetBool(c4d.ID_CA_CHARACTER_GROUP_DIGITS_POSES_SELECTED,True)
bc.SetFloat(c4d.ID_CA_CHARACTER_GROUP_DIGITS_POSES_MIX,0.1)
bc.SetInt32(c4d.ID_CA_CHARACTER_COMPONENT_HIGHLIGHT_SELECTED,c4d.ID_CA_CHARACTER_COMPONENT_HIGHLIGHT_NONE)
bc.SetInt32(c4d.ID_CA_CHARACTER_COMPONENT_HIGHLIGHT_OVER,c4d.ID_CA_CHARACTER_COMPONENT_HIGHLIGHT_NONE)
bc.SetInt32(c4d.ID_CA_CHARACTER_COMPONENT_MOUSEOVER,c4d.ID_CA_CHARACTER_COMPONENT_MOUSEOVER_NONE)
bc.SetInt32(c4d.ID_CA_CHARACTER_COMPONENT_VISIBLE,c4d.ID_CA_CHARACTER_COMPONENT_HIGHLIGHT_NONE)
bc.SetFloat(c4d.ID_CA_CHARACTER_COMPONENT_DISPLAY_HANDLE_SCREEN_SIZE,0.1)
bc.SetInt32(c4d.ID_CA_CHARACTER_COMPONENT_DISPLAY_HANDLE_UNITS,c4d.ID_CA_CHARACTER_COMPONENT_DISPLAY_HANDLE_UNITS_WORLD)
bc.SetInt32(c4d.ID_CA_CHARACTER_COMPONENT_ADJUST_DISPLAY,c4d.ID_CA_CHARACTER_COMPONENT_ADJUST_DISPLAY_CUBE)
bc.SetInt32(c4d.ID_CA_CHARACTER_ADJUST_COLORING,c4d.ID_CA_CHARACTER_ADJUST_COLORING_SINGLE)
bc.SetInt32(c4d.ID_CA_CHARACTER_ADJUST_HANDLES,c4d.ID_CA_CHARACTER_ADJUST_HANDLES_FIXED)
bc.SetInt32(c4d.ID_CA_CHARACTER_COMPONENT_HANDLE_JOINTS,c4d.ID_CA_CHARACTER_COMPONENT_HANDLE_JOINTS_DEFAULT)
bc.SetInt32(c4d.ID_CA_CHARACTER_JOINT_COLORING,c4d.ID_CA_CHARACTER_JOINT_COLORS_DEFAULT)
bc.SetFloat(c4d.ID_CA_CHARACTER_ACTIVE_COLOR_MIX,0.1)
bc.SetFloat(c4d.ID_CA_CHARACTER_HIGHLIGHT_COLOR_MIX,0.1)
bc.SetInt32(c4d.ID_CA_CHARACTER_ICON_TYPES,c4d.ID_CA_CHARACTER_ICON_TYPES_TEMPLATE)
bc.SetBool(c4d.ID_CA_CHARACTER_ICON_COLORIZE,True)
bc.SetInt32(c4d.ID_CA_CHARACTER_BONE_DISPLAY,c4d.ID_CA_CHARACTER_BONE_DISPLAY_DEFAULT)
bc.SetInt32(c4d.ID_CA_CHARACTER_JOINT_DISPLAY,c4d.ID_CA_CHARACTER_JOINT_DISPLAY_DEFAULT)
bc.SetInt32(c4d.ID_CA_CHARACTER_OM_DISPLAY,c4d.ID_CA_CHARACTER_OM_DISPLAY_NONE)
bc.SetBool(c4d.ID_CA_CHARACTER_LOCK_AM,True)
bc.SetBool(c4d.ID_CA_CHARACTER_NAMING_COMPONENT,True)
bc.SetBool(c4d.ID_CA_CHARACTER_NAMING_OBJECTS,True)
bc.SetBool(c4d.ID_CA_CHARACTER_NAMING_CONTROLLERS,True)
bc.SetString(c4d.ID_CA_CHARACTER_NAMING_PRE,"Hello World")
bc.SetString(c4d.ID_CA_CHARACTER_NAMING_POST,"Hello World")
bc.SetString(c4d.ID_CA_CHARACTER_NAMING_REPLACE,"Hello World")
bc.SetString(c4d.ID_CA_CHARACTER_NAMING_REPLACE_WITH,"Hello World")
bc.SetBool(c4d.ID_CA_CHARACTER_NAMING_CASE,True)
bc.SetInt32(c4d.ID_CA_CHARACTER_NAMING_LABEL,c4d.ID_CA_CHARACTER_NAMING_LABEL_NONE)
bc.SetInt32(c4d.ID_CA_CHARACTER_NAMING_LABEL_COMPONENTS,c4d.ID_CA_CHARACTER_NAMING_LABEL_NONE)
bc.SetInt32(c4d.ID_CA_CHARACTER_NAMING_LABEL_OBJECTS,c4d.ID_CA_CHARACTER_NAMING_LABEL_NONE)
bc.SetInt32(c4d.ID_CA_CHARACTER_NAMING_LABEL_CONTROLLERS,c4d.ID_CA_CHARACTER_NAMING_LABEL_NONE)
bc.SetInt32(c4d.ID_CA_CHARACTER_NAMING_SEPARATOR,c4d.ID_CA_CHARACTER_NAMING_SEPARATOR_DOT)
bc.SetString(c4d.ID_CA_CHARACTER_NAMING_SEPARATOR_TXT,"Hello World")
bc.SetInt32(c4d.ID_CA_CHARACTER_EXPRESSIONS_PASSES,1)
if __name__=='__main__':
main()
C++
#include "c4d.h"
#include "../ca/description/ocharacterbase.h"
void SampleFunction()
{
BaseDocument *pDoc = GetActiveDocument();
BaseObject *pObject = BaseObject::Alloc(Ocharacterbase);
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(ID_CA_CHARACTER_TYPE),GeData(ID_CA_CHARACTER_TYPE_NONE),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_TYPE_AUTO_SIZE),GeData(true),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_TYPE_SIZE),GeData(0.1),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_TYPE_NAME),GeData("Hello World"),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_DEBUG),GeData(true),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_MODE),GeData(ID_CA_CHARACTER_MODE_BUILD),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_PROTECT),GeData(true),flags);
pObject->SetParameter(DescID(ID_CA_ADJUST_MODE),GeData(ID_CA_ADJUST_MODE_COMPONENT),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_ADJUST_SYMMETRY),GeData(true),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_ADJUST_SYMMETRY_ORIGIN),GeData(ID_CA_CHARACTER_ADJUST_SYMMETRY_ORIGIN_DEFAULT),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_ADJUST_SYMMETRY_PLANE),GeData(ID_CA_CHARACTER_ADJUST_SYMMETRY_PLANE_DEFAULT),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_ADJUST_SYMMETRY_SEARCH_DISTANCE),GeData(true),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_ADJUST_SYMMETRY_RAD),GeData(0.1),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_ADJUST_SYMMETRY_SEARCH_NAME),GeData(true),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_ADJUST_SYMMETRY_SEARCH_NAME_CASE),GeData(true),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_ADJUST_SYMMETRY_SEARCH_NAME_REPLACE),GeData("Hello World"),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_ADJUST_SYMMETRY_SEARCH_NAME_WITH),GeData("Hello World"),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_AUTO_ALIGN),GeData(ID_CA_CHARACTER_AUTO_ALIGN_OFF),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_ADJUST_FILTER),GeData(ID_CA_CHARACTER_ADJUST_FILTER_ALL),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_TEMPLATE),GeData(1),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_BONE_COUNT),GeData(1),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_BONE_LENGTH),GeData(0.1),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_COMPONENT_NAME),GeData("Hello World"),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_OBJECT_NAME),GeData("Hello World"),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_COMPONENT_NOTES),GeData("Hello World"),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_DIGITS_COUNT),GeData(1),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_DIGITS_SHOWALL),GeData(true),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_GROUP_DIGITS_POSES_ENABLE),GeData(true),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_GROUP_DIGITS_POSES_SELECTED),GeData(true),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_GROUP_DIGITS_POSES_MIX),GeData(0.1),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_COMPONENT_HIGHLIGHT_SELECTED),GeData(ID_CA_CHARACTER_COMPONENT_HIGHLIGHT_NONE),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_COMPONENT_HIGHLIGHT_OVER),GeData(ID_CA_CHARACTER_COMPONENT_HIGHLIGHT_NONE),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_COMPONENT_MOUSEOVER),GeData(ID_CA_CHARACTER_COMPONENT_MOUSEOVER_NONE),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_COMPONENT_VISIBLE),GeData(ID_CA_CHARACTER_COMPONENT_HIGHLIGHT_NONE),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_COMPONENT_DISPLAY_HANDLE_SCREEN_SIZE),GeData(0.1),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_COMPONENT_DISPLAY_HANDLE_UNITS),GeData(ID_CA_CHARACTER_COMPONENT_DISPLAY_HANDLE_UNITS_WORLD),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_COMPONENT_ADJUST_DISPLAY),GeData(ID_CA_CHARACTER_COMPONENT_ADJUST_DISPLAY_CUBE),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_ADJUST_COLORING),GeData(ID_CA_CHARACTER_ADJUST_COLORING_SINGLE),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_ADJUST_HANDLES),GeData(ID_CA_CHARACTER_ADJUST_HANDLES_FIXED),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_COMPONENT_HANDLE_JOINTS),GeData(ID_CA_CHARACTER_COMPONENT_HANDLE_JOINTS_DEFAULT),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_JOINT_COLORING),GeData(ID_CA_CHARACTER_JOINT_COLORS_DEFAULT),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_ACTIVE_COLOR_MIX),GeData(0.1),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_HIGHLIGHT_COLOR_MIX),GeData(0.1),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_ICON_TYPES),GeData(ID_CA_CHARACTER_ICON_TYPES_TEMPLATE),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_ICON_COLORIZE),GeData(true),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_BONE_DISPLAY),GeData(ID_CA_CHARACTER_BONE_DISPLAY_DEFAULT),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_JOINT_DISPLAY),GeData(ID_CA_CHARACTER_JOINT_DISPLAY_DEFAULT),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_OM_DISPLAY),GeData(ID_CA_CHARACTER_OM_DISPLAY_NONE),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_LOCK_AM),GeData(true),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_NAMING_COMPONENT),GeData(true),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_NAMING_OBJECTS),GeData(true),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_NAMING_CONTROLLERS),GeData(true),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_NAMING_PRE),GeData("Hello World"),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_NAMING_POST),GeData("Hello World"),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_NAMING_REPLACE),GeData("Hello World"),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_NAMING_REPLACE_WITH),GeData("Hello World"),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_NAMING_CASE),GeData(true),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_NAMING_LABEL),GeData(ID_CA_CHARACTER_NAMING_LABEL_NONE),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_NAMING_LABEL_COMPONENTS),GeData(ID_CA_CHARACTER_NAMING_LABEL_NONE),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_NAMING_LABEL_OBJECTS),GeData(ID_CA_CHARACTER_NAMING_LABEL_NONE),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_NAMING_LABEL_CONTROLLERS),GeData(ID_CA_CHARACTER_NAMING_LABEL_NONE),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_NAMING_SEPARATOR),GeData(ID_CA_CHARACTER_NAMING_SEPARATOR_DOT),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_NAMING_SEPARATOR_TXT),GeData("Hello World"),flags);
pObject->SetParameter(DescID(ID_CA_CHARACTER_EXPRESSIONS_PASSES),GeData(1),flags);
pObject->Message(MSG_UPDATE);
//Second way, using the base container.
BaseContainer *bc = pObject->GetDataInstance();
bc->SetInt32(ID_CA_CHARACTER_TYPE,ID_CA_CHARACTER_TYPE_NONE);
bc->SetBool(ID_CA_CHARACTER_TYPE_AUTO_SIZE,true);
bc->SetFloat(ID_CA_CHARACTER_TYPE_SIZE,0.1);
bc->SetString(ID_CA_CHARACTER_TYPE_NAME,"Hello World");
bc->SetBool(ID_CA_CHARACTER_DEBUG,true);
bc->SetInt32(ID_CA_CHARACTER_MODE,ID_CA_CHARACTER_MODE_BUILD);
bc->SetBool(ID_CA_CHARACTER_PROTECT,true);
bc->SetInt32(ID_CA_ADJUST_MODE,ID_CA_ADJUST_MODE_COMPONENT);
bc->SetBool(ID_CA_CHARACTER_ADJUST_SYMMETRY,true);
bc->SetInt32(ID_CA_CHARACTER_ADJUST_SYMMETRY_ORIGIN,ID_CA_CHARACTER_ADJUST_SYMMETRY_ORIGIN_DEFAULT);
bc->SetInt32(ID_CA_CHARACTER_ADJUST_SYMMETRY_PLANE,ID_CA_CHARACTER_ADJUST_SYMMETRY_PLANE_DEFAULT);
bc->SetBool(ID_CA_CHARACTER_ADJUST_SYMMETRY_SEARCH_DISTANCE,true);
bc->SetFloat(ID_CA_CHARACTER_ADJUST_SYMMETRY_RAD,0.1);
bc->SetBool(ID_CA_CHARACTER_ADJUST_SYMMETRY_SEARCH_NAME,true);
bc->SetBool(ID_CA_CHARACTER_ADJUST_SYMMETRY_SEARCH_NAME_CASE,true);
bc->SetString(ID_CA_CHARACTER_ADJUST_SYMMETRY_SEARCH_NAME_REPLACE,"Hello World");
bc->SetString(ID_CA_CHARACTER_ADJUST_SYMMETRY_SEARCH_NAME_WITH,"Hello World");
bc->SetInt32(ID_CA_CHARACTER_AUTO_ALIGN,ID_CA_CHARACTER_AUTO_ALIGN_OFF);
bc->SetInt32(ID_CA_CHARACTER_ADJUST_FILTER,ID_CA_CHARACTER_ADJUST_FILTER_ALL);
bc->SetInt32(ID_CA_CHARACTER_TEMPLATE,1);
bc->SetInt32(ID_CA_CHARACTER_BONE_COUNT,1);
bc->SetFloat(ID_CA_CHARACTER_BONE_LENGTH,0.1);
bc->SetString(ID_CA_CHARACTER_COMPONENT_NAME,"Hello World");
bc->SetString(ID_CA_CHARACTER_OBJECT_NAME,"Hello World");
bc->SetString(ID_CA_CHARACTER_COMPONENT_NOTES,"Hello World");
bc->SetInt32(ID_CA_CHARACTER_DIGITS_COUNT,1);
bc->SetBool(ID_CA_CHARACTER_DIGITS_SHOWALL,true);
bc->SetBool(ID_CA_CHARACTER_GROUP_DIGITS_POSES_ENABLE,true);
bc->SetBool(ID_CA_CHARACTER_GROUP_DIGITS_POSES_SELECTED,true);
bc->SetFloat(ID_CA_CHARACTER_GROUP_DIGITS_POSES_MIX,0.1);
bc->SetInt32(ID_CA_CHARACTER_COMPONENT_HIGHLIGHT_SELECTED,ID_CA_CHARACTER_COMPONENT_HIGHLIGHT_NONE);
bc->SetInt32(ID_CA_CHARACTER_COMPONENT_HIGHLIGHT_OVER,ID_CA_CHARACTER_COMPONENT_HIGHLIGHT_NONE);
bc->SetInt32(ID_CA_CHARACTER_COMPONENT_MOUSEOVER,ID_CA_CHARACTER_COMPONENT_MOUSEOVER_NONE);
bc->SetInt32(ID_CA_CHARACTER_COMPONENT_VISIBLE,ID_CA_CHARACTER_COMPONENT_HIGHLIGHT_NONE);
bc->SetFloat(ID_CA_CHARACTER_COMPONENT_DISPLAY_HANDLE_SCREEN_SIZE,0.1);
bc->SetInt32(ID_CA_CHARACTER_COMPONENT_DISPLAY_HANDLE_UNITS,ID_CA_CHARACTER_COMPONENT_DISPLAY_HANDLE_UNITS_WORLD);
bc->SetInt32(ID_CA_CHARACTER_COMPONENT_ADJUST_DISPLAY,ID_CA_CHARACTER_COMPONENT_ADJUST_DISPLAY_CUBE);
bc->SetInt32(ID_CA_CHARACTER_ADJUST_COLORING,ID_CA_CHARACTER_ADJUST_COLORING_SINGLE);
bc->SetInt32(ID_CA_CHARACTER_ADJUST_HANDLES,ID_CA_CHARACTER_ADJUST_HANDLES_FIXED);
bc->SetInt32(ID_CA_CHARACTER_COMPONENT_HANDLE_JOINTS,ID_CA_CHARACTER_COMPONENT_HANDLE_JOINTS_DEFAULT);
bc->SetInt32(ID_CA_CHARACTER_JOINT_COLORING,ID_CA_CHARACTER_JOINT_COLORS_DEFAULT);
bc->SetFloat(ID_CA_CHARACTER_ACTIVE_COLOR_MIX,0.1);
bc->SetFloat(ID_CA_CHARACTER_HIGHLIGHT_COLOR_MIX,0.1);
bc->SetInt32(ID_CA_CHARACTER_ICON_TYPES,ID_CA_CHARACTER_ICON_TYPES_TEMPLATE);
bc->SetBool(ID_CA_CHARACTER_ICON_COLORIZE,true);
bc->SetInt32(ID_CA_CHARACTER_BONE_DISPLAY,ID_CA_CHARACTER_BONE_DISPLAY_DEFAULT);
bc->SetInt32(ID_CA_CHARACTER_JOINT_DISPLAY,ID_CA_CHARACTER_JOINT_DISPLAY_DEFAULT);
bc->SetInt32(ID_CA_CHARACTER_OM_DISPLAY,ID_CA_CHARACTER_OM_DISPLAY_NONE);
bc->SetBool(ID_CA_CHARACTER_LOCK_AM,true);
bc->SetBool(ID_CA_CHARACTER_NAMING_COMPONENT,true);
bc->SetBool(ID_CA_CHARACTER_NAMING_OBJECTS,true);
bc->SetBool(ID_CA_CHARACTER_NAMING_CONTROLLERS,true);
bc->SetString(ID_CA_CHARACTER_NAMING_PRE,"Hello World");
bc->SetString(ID_CA_CHARACTER_NAMING_POST,"Hello World");
bc->SetString(ID_CA_CHARACTER_NAMING_REPLACE,"Hello World");
bc->SetString(ID_CA_CHARACTER_NAMING_REPLACE_WITH,"Hello World");
bc->SetBool(ID_CA_CHARACTER_NAMING_CASE,true);
bc->SetInt32(ID_CA_CHARACTER_NAMING_LABEL,ID_CA_CHARACTER_NAMING_LABEL_NONE);
bc->SetInt32(ID_CA_CHARACTER_NAMING_LABEL_COMPONENTS,ID_CA_CHARACTER_NAMING_LABEL_NONE);
bc->SetInt32(ID_CA_CHARACTER_NAMING_LABEL_OBJECTS,ID_CA_CHARACTER_NAMING_LABEL_NONE);
bc->SetInt32(ID_CA_CHARACTER_NAMING_LABEL_CONTROLLERS,ID_CA_CHARACTER_NAMING_LABEL_NONE);
bc->SetInt32(ID_CA_CHARACTER_NAMING_SEPARATOR,ID_CA_CHARACTER_NAMING_SEPARATOR_DOT);
bc->SetString(ID_CA_CHARACTER_NAMING_SEPARATOR_TXT,"Hello World");
bc->SetInt32(ID_CA_CHARACTER_EXPRESSIONS_PASSES,1);
pObject->Message(MSG_UPDATE);
}
Buttons
This node has buttons. Buttons can manually be executed by calling the following code
Python
c4d.CallButton(obj,c4d.ID_CA_CHARACTER_REST_RESET)
c4d.CallButton(obj,c4d.ID_CA_CHARACTER_REST_UPDATE)
c4d.CallButton(obj,c4d.ID_CA_CHARACTER_ANIMATION_CREATE_WALK)
c4d.CallButton(obj,c4d.ID_CA_CHARACTER_BIND_AUTO)
c4d.CallButton(obj,c4d.ID_CA_CHARACTER_LOAD_CHARACTER)
c4d.CallButton(obj,c4d.ID_CA_CHARACTER_SAVE_CHARACTER)
c4d.CallButton(obj,c4d.ID_CA_CHARACTER_GROUP_DIGITS_POSES_RECORD)
c4d.CallButton(obj,c4d.ID_CA_CHARACTER_GROUP_DIGITS_POSES_ADD)
c4d.CallButton(obj,c4d.ID_CA_CHARACTER_GROUP_DIGITS_POSES_REMOVE)
c4d.CallButton(obj,c4d.ID_CA_CHARACTER_COMPONENT_HOTSPOTS_CREATE_HUD)
c4d.CallButton(obj,c4d.ID_CA_CHARACTER_COMPONENT_HOTSPOTS_CREATE_VS)
c4d.CallButton(obj,c4d.ID_CA_CHARACTER_CONTROLLER_REMOVE)
c4d.CallButton(obj,c4d.ID_CA_CHARACTER_JOINT_COLOR_APPLY)
c4d.CallButton(obj,c4d.ID_CA_CHARACTER_DISPLAY_JOINTS_RESET)
c4d.CallButton(obj,c4d.ID_CA_CHARACTER_NAMING_CLEAR)
C++
DescriptionCommand dc;
dc.id = DescID(ID_CA_CHARACTER_REST_RESET);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(ID_CA_CHARACTER_REST_UPDATE);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(ID_CA_CHARACTER_ANIMATION_CREATE_WALK);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(ID_CA_CHARACTER_BIND_AUTO);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(ID_CA_CHARACTER_LOAD_CHARACTER);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(ID_CA_CHARACTER_SAVE_CHARACTER);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(ID_CA_CHARACTER_GROUP_DIGITS_POSES_RECORD);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(ID_CA_CHARACTER_GROUP_DIGITS_POSES_ADD);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(ID_CA_CHARACTER_GROUP_DIGITS_POSES_REMOVE);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(ID_CA_CHARACTER_COMPONENT_HOTSPOTS_CREATE_HUD);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(ID_CA_CHARACTER_COMPONENT_HOTSPOTS_CREATE_VS);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(ID_CA_CHARACTER_CONTROLLER_REMOVE);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(ID_CA_CHARACTER_JOINT_COLOR_APPLY);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(ID_CA_CHARACTER_DISPLAY_JOINTS_RESET);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(ID_CA_CHARACTER_NAMING_CLEAR);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);