描述 Settings Manual

内容表

关于

A parameter description includes the type of a parameter and some additional information. Such a parameter description is stored in a BaseContainer . The different settings are accessed using the IDs described on this page. These settings define how the parameter behaves and how it is displayed in the Attribute Manager.

Such parameter descriptions are handled in the following situations:

Parameters Types

While certain settings apply to all parameter types, others are specific to certain parameter types. With this utility function one can create a BaseContainer with the correct default settings:

These are the default Cinema 4D parameter and data types. For plugin data types the plugin ID must be used.

注意
Do not confuse these types with DA_TYPES (见 GeData Manual ).
// This example adds a new Boolean parameter // to the given Description in NodeData::GetDDescription().
const DescID cid = DescLevel (ID_BOOL, DTYPE_BOOL , 0);
const DescID * const singleid = description-> GetSingleDescID ();

// If a SingleDescID is set, check if the cid is part of it. // This is a check if only the description of the given SingleDescID // should be set or not. if (singleid == nullptr || cid. IsPartOf (*singleid, nullptr )) { BaseContainer settings = GetCustomDataTypeDefault ( DTYPE_BOOL ); 设置。 SetString ( DESC_NAME , "Boolean Parameter" _s);

// check if the new parameter description could be inserted if (!description-> SetParameter (cid, settings, ID_OBJECTPROPERTIES )) return ; }

Other parameter types are

Other data types are defined as custom data types like CUSTOMDATATYPE_BITMAPBUTTON etc.

// This example adds both a button and a BitmapButton to the given Description. MAXON_SCOPE { // create a button BaseContainer settings = GetCustomDataTypeDefault ( DTYPE_BUTTON ); 设置。 SetString ( DESC_NAME , "Button" _s); 设置。 SetInt32 ( DESC_CUSTOMGUI , CUSTOMGUI_BUTTON ); description-> SetParameter (buttonID, settings, ID_OBJECTPROPERTIES ); } MAXON_SCOPE { // create a bitmap button BaseContainer settings = GetCustomDataTypeDefault ( CUSTOMDATATYPE_BITMAPBUTTON ); 设置。 SetString ( DESC_NAME , "Bitmap Button" _s); 设置。 SetInt32 ( DESC_CUSTOMGUI , CUSTOMGUI_BITMAPBUTTON ); 设置。 SetInt32 ( BITMAPBUTTON_BUTTON , true ); // button acts like a button 设置。 SetInt32 ( BITMAPBUTTON_ICONID1 , IDM_DELETE ); // use the "Delete" icon 设置。 SetInt32 ( DESC_ALIGNLEFT , 1); // don't scale description-> SetParameter (bitmamButtionID, settings, ID_OBJECTPROPERTIES ); }

Groups

Parameters are organized in parameter groups. These groups are used to define the structure and the layout of the parameters.

// This example creates a new parameter group with two sub-parameters.

// define the group MAXON_SCOPE { const DescID groupID = DescLevel (ID_GROUP, DTYPE_GROUP , 0); BaseContainer settings = GetCustomDataTypeDefault ( DTYPE_GROUP ); 设置。 SetString ( DESC_NAME , "New Group" _s); 设置。 SetInt32 ( DESC_COLUMNS , 2); // group has two columns 设置。 SetInt32 ( DESC_DEFAULT , 1); // group is unfolded by default 设置。 SetInt32 ( DESC_SCALEH , 1); // group is scaled horizontally description-> SetParameter (groupID, settings, 0); }

// add the first child parameter MAXON_SCOPE { const DescID cid = DescID ( DescLevel (ID_STRING_A, DTYPE_STRING , 0)); BaseContainer settings = GetCustomDataTypeDefault ( DTYPE_STRING ); 设置。 SetString ( DESC_NAME , "Parameter A" _s); 设置。 SetInt32 ( DESC_SCALEH , 1); description-> SetParameter (cid, settings, ID_GROUP); }

// add the second child parameter MAXON_SCOPE { const DescID cid = DescID ( DescLevel (ID_STRING_B, DTYPE_STRING , 0)); BaseContainer settings = GetCustomDataTypeDefault ( DTYPE_STRING ); 设置。 SetString ( DESC_NAME , "Parameter B" _s); 设置。 SetInt32 ( DESC_SCALEH , 1); description-> SetParameter (cid, settings, ID_GROUP); } }

A parameter is typically part of a group:

The group IDs of specific elements are defined in the corresponding header files like ID_OBJECTPROPERTIES in Obase.h .

// This example reads the DESC_PARENTGROUP parameter of a given description BaseContainer. const GeData parentid = bc-> GetData ( DESC_PARENTGROUP );

// check if the GeData stores a DescID if (parentid. GetType () == CUSTOMDATATYPE_DESCID ) { // get DescID CustomDataType * const customData = parentid. GetCustomDataType ( CUSTOMDATATYPE_DESCID ); const DescID * const descID = static_cast< const DescID * > (customData); if (descID == nullptr ) return maxon::UnexpectedError( MAXON_SOURCE_LOCATION );

// print ID const Int32 id = descID->operator[](-1). id ; ApplicationOutput ( "Parent Group ID: " + String::IntToString ( id )); }

A row of a group can be filled with dummy elements so that the next elements start in a new row:

// This example adds a static text element to the given group. // Using DESC_NEWLINE this element will fill the remainder of the row // so that the next added elements are placed in the next row. const DescID cid = DescID ( DescLevel (ID_NEWLINE, DTYPE_STATICTEXT , 0)); BaseContainer settings = GetCustomDataTypeDefault ( DTYPE_STATICTEXT ); 设置。 SetString ( DESC_NAME , "" _s); 设置。 SetInt32 ( DESC_SCALEH , 1); 设置。 SetBool ( DESC_NEWLINE , true ); description-> SetParameter (cid, settings, ID_GROUP);

Parent Parameters

A parameter can be a parent parameter of another parameter. The child parameter is hidden until the user clicks on a little arrow.

// This example adds two parameter descriptions. // The first parameter acts as a parent for the second parameter. const DescID parentID = DescID ( DescLevel (ID_PARENT, DTYPE_STRING , 0));

// add the parent parameter MAXON_SCOPE { BaseContainer settings = GetCustomDataTypeDefault ( DTYPE_STRING ); 设置。 SetString ( DESC_NAME , "Parent" _s); 设置。 SetData ( DESC_PARENT_COLLAPSE , NOTOK ); description-> SetParameter (parentID, settings, ID_OBJECTPROPERTIES ); }

// add the child parameter MAXON_SCOPE { const DescID cid = DescID ( DescLevel (ID_CHILD, DTYPE_STRING , 0)); BaseContainer settings = GetCustomDataTypeDefault ( DTYPE_STRING ); 设置。 SetString ( DESC_NAME , "Child" _s); GeData parentIdData; parentIdData. SetCustomDataType ( CUSTOMDATATYPE_DESCID , parentID); 设置。 SetData ( DESC_PARENT_COLLAPSE , parentIdData); description-> SetParameter (cid, settings, ID_OBJECTPROPERTIES ); }

Layout

The parameter description includes settings that define how a group or parameter should be scaled in the Attribute Manager.

Visibility

The parameter description also includes information on how the parameter is displayed:

注意
To enable or disable a parameter in the Attribute Manager one must implement NodeData::GetDEnabling() ,见 NodeData::GetDEnabling() Manual .
// This example creates and configures the BaseContainer for a float parameter description. BaseContainer settings = GetCustomDataTypeDefault ( DTYPE_REAL ); 设置。 SetString ( DESC_NAME , "Float Value" _s); 设置。 SetInt32 ( DESC_CUSTOMGUI , CUSTOMGUI_REALSLIDER ); // use this custom GUI 设置。 SetInt32 ( DESC_NOGUISWITCH , true ); // do not allow to change the custom GUI

// This example creates a shader link parameter description that cannot be unfolded. BaseContainer settings = GetCustomDataTypeDefault ( DTYPE_BASELISTLINK ); 设置。 SetString ( DESC_NAME , "Shader" _s); 设置。 SetInt32 ( DESC_CUSTOMGUI , CUSTOMGUI_TEXBOX ); // use the tex box gui to handle shaders 设置。 SetBool ( DESC_SHADERLINKFLAG , true ); // is a shader link

// don't unfold the GUI in the Attribute Manager 设置。 SetInt32 ( DESC_FORBID_INLINE_FOLDING , true ); description-> SetParameter (cid, settings, DescLevel ( ID_OBJECTPROPERTIES ));

The settings of a custom GUI also have to be stored in the BaseContainer .

// This example configures a DateTime description so that the used // custom GUI only displays the calendar. BaseContainer settings = GetCustomDataTypeDefault ( DATETIME_DATA ); 设置。 SetString ( DESC_NAME , "Date" _s); 设置。 SetInt32 ( DESC_CUSTOMGUI , DATETIME_GUI ); 设置。 SetBool ( DATETIME_TIME_CONTROL , false ); // don't display clock 设置。 SetBool ( DATETIME_DATE_CONTROL , true ); // display calendar 设置。 SetBool ( DATETIME_NOW_BUTTON , true ); // display "Today" button

名称

The name of a parameter is displayed in the Attribute Manager or other contexts:

// This example configures the names for a float parameter description. BaseContainer settings = GetCustomDataTypeDefault ( DTYPE_REAL ); 设置。 SetString ( DESC_NAME , "Parameter Name" _s); // displayed in the Xpresso "Object" node 设置。 SetString ( DESC_SHORT_NAME , "Short Name" _s); // displayed in the Attribute Manager

动画

One can enable or disable if a parameter should be animateable:

// This example disables animation for the new parameter description. BaseContainer settings = GetCustomDataTypeDefault ( DTYPE_REAL ); 设置。 SetString ( DESC_NAME , "Non Animate" _s); 设置。 SetInt32 ( DESC_ANIMATE , DESC_ANIMATE_OFF ); // parameter not animateable

For specific parameter types certain values can be set:

For DTYPE_REAL , DTYPE_LONG and DTYPE_VECTOR parameters:

// This example uses a slider to display a float parameter. // The range of the parameter and of the slider are configured. BaseContainer settings = GetCustomDataTypeDefault ( DTYPE_REAL ); 设置。 SetString ( DESC_NAME , "Slider" _s); 设置。 SetInt32 ( DESC_CUSTOMGUI , CUSTOMGUI_REALSLIDER ); 设置。 SetFloat ( DESC_MIN , -1.0); // min value: -100% 设置。 SetFloat ( DESC_MAX , 2.0); // max value: 200% 设置。 SetFloat ( DESC_MINSLIDER , 0.0); // min slider: 0% 设置。 SetFloat ( DESC_MAXSLIDER , 1.0); // max slider: 100% 设置。 SetFloat ( DESC_STEP , 0.02); // step size 2% 设置。 SetInt32 ( DESC_UNIT , DESC_UNIT_PERCENT ); // display percent

DTYPE_REAL and DTYPE_VECTOR can display values with a given unit:

注意
These are the same formats as used with GeDialog::SetFloat() .
// This example configures a float parameter to display "meters" as a unit. // This parameter won't be scaled when the object is scaled. BaseContainer settings = GetCustomDataTypeDefault ( DTYPE_REAL ); 设置。 SetString ( DESC_NAME , "Meters" _s); 设置。 SetInt32 ( DESC_UNIT , DESC_UNIT_METER ); // display "meters"

// don't scale this parameter when the host BaseObject is scaled 设置。 SetBool ( DESC_FORBID_SCALING , true );

The values selectable in a drop down parameter (based on DTYPE_LONG ) are stored in sub-containers:

// This example creates a drop down field with three items.

// a drop down is a long parameter with a custom GUI BaseContainer settings = GetCustomDataTypeDefault ( DTYPE_LONG ); 设置。 SetString ( DESC_NAME , "Drop Down" _s); 设置。 SetInt32 ( DESC_CUSTOMGUI , CUSTOMGUI_CYCLE );

// add cycle elements BaseContainer items; items. SetString (0, "Item 1" _s); items. SetString (1, "Item 2" _s); items. SetString (2, "Item 3" _s); 设置。 SetContainer ( DESC_CYCLE , items);

// add cycle icons BaseContainer icons; icons. SetInt32 (0, 5159); // use "Cube" icon icons. SetInt32 (1, IDM_CUT ); // use "Cut" icon icons. SetInt32 (2, IDM_DELETE ); // use "Delete" icon 设置。 SetContainer ( DESC_CYCLEICONS , icons);

Both DTYPE_BASELISTLINK and CUSTOMDATATYPE_INEXCLUDE_LIST parameter types can reference Cinema 4D 元素。

注意
The check is done with C4DAtom::IsInstanceOf() , so also category types like Obase etc. can be used.
// This example configures a link parameter description // that only accepts "Cube" and "Sphere" objects. BaseContainer settings = GetCustomDataTypeDefault ( DTYPE_BASELISTLINK ); 设置。 SetString ( DESC_NAME , "Link" _s); 设置。 SetInt32 ( DESC_CUSTOMGUI , CUSTOMGUI_LINKBOX ); BaseContainer ac; ac. SetInt32 ( Osphere , 1); // accept "Sphere" objects ac. SetInt32 ( Ocube , 1); // accept "Cube" objects. 设置。 SetContainer ( DESC_ACCEPT , ac);

A DTYPE_BASELISTLINK parameter can also reference and manage a shader:

// This example creates a shader link parameter description that cannot be unfolded. BaseContainer settings = GetCustomDataTypeDefault ( DTYPE_BASELISTLINK ); 设置。 SetString ( DESC_NAME , "Shader" _s); 设置。 SetInt32 ( DESC_CUSTOMGUI , CUSTOMGUI_TEXBOX ); // use the tex box gui to handle shaders 设置。 SetBool ( DESC_SHADERLINKFLAG , true ); // is a shader link

// don't unfold the GUI in the Attribute Manager 设置。 SetInt32 ( DESC_FORBID_INLINE_FOLDING , true ); description-> SetParameter (cid, settings, DescLevel ( ID_OBJECTPROPERTIES ));

A DTYPE_SEPARATOR can be displayed with or without a line:

// This example configures a separator description. BaseContainer settings = GetCustomDataTypeDefault ( DTYPE_SEPARATOR ); 设置。 SetString ( DESC_NAME , String ()); 设置。 SetInt32 ( DESC_CUSTOMGUI , CUSTOMGUI_SEPARATOR ); 设置。 SetBool ( DESC_SEPARATORLINE , true );

DTYPE_VECTOR is used to display a rotation ( DESC_UNIT_DEGREE ) it can display this as XYZ or HPB:

// This example configures a vector parameter description. BaseContainer settings = GetCustomDataTypeDefault ( DTYPE_VECTOR ); 设置。 SetString ( DESC_NAME , "Vector" _s); 设置。 SetInt32 ( DESC_UNIT , DESC_UNIT_DEGREE ); // use degree units for rotation vector 设置。 SetBool ( DESC_ANGULAR_XYZ , true ); // sub-parameters won't be shown as HPB but as XYZ

Material Editor

Materials can include parameter groups that are presented as "channels" in the Material Editor window. The left column of the Material Editor can include references to these channels or simple parameters:

// This example adds a parameter to the left column of the Material Editor. // The name of the parameter will be hidden. const DescID cid { DescLevel { ID_REAL, DTYPE_REAL , 0 } }; BaseContainer settings = GetCustomDataTypeDefault ( DTYPE_REAL ); 设置。 SetString ( DESC_NAME , "Float Value" _s);

// don't display the name in the Material Editor left column 设置。 SetBool ( DESC_MATEDNOTEXT , true ); description-> SetParameter (cid, settings, Tbaselist2d );

A DTYPE_BOOL can be used to enable or disable a channel group.

// This example adds a new material parameter group. // This group can be selected with a Boolean parameter in the left column.

// add the Boolean parameter to select the group MAXON_SCOPE { const DescID cid { DescLevel { ID_SETTINGS_BOOL, DTYPE_BOOL , 0 } }; BaseContainer settings = GetCustomDataTypeDefault ( DTYPE_BOOL ); 设置。 SetString ( DESC_NAME , "Settings" _s); 设置。 SetInt32 ( DESC_PARENTMSG , ID_SETTINGS_GROUP); // the group to select 设置。 SetBool ( BOOL_PAGEMODE , true ); // page mode; no checkbox is displayed 设置。 SetBool ( DESC_HIDE , true ); // hide in Attribute Manager description-> SetParameter (cid, settings, Tbaselist2d ); }

// add a material group MAXON_SCOPE { const DescID cid = DescLevel (ID_SETTINGS_GROUP, DTYPE_GROUP , 0); BaseContainer settings = GetCustomDataTypeDefault ( DTYPE_GROUP ); 设置。 SetString ( DESC_NAME , "Material Properties" _s); description-> SetParameter (cid, settings, 0); }

// add a parameter to that group MAXON_SCOPE { const DescID cid { DescLevel { ID_PARAMETER, DTYPE_BOOL , 0 } }; BaseContainer settings = GetCustomDataTypeDefault ( DTYPE_BOOL ); 设置。 SetString ( DESC_NAME , "Some Parameter" _s); description-> SetParameter (cid, settings, ID_SETTINGS_GROUP); }

延伸阅读

DTYPE_BOOL
@ DTYPE_BOOL
GV Bool. ID_GV_DATA_TYPE_BOOL.
定义: lib_description.h:75
BaseContainer::GetData
const GeData & GetData(Int32 id) const
定义: c4d_basecontainer.h:262
DESC_ANGULAR_XYZ
@ DESC_ANGULAR_XYZ
Bool true for XYZ as angular representation, or false for HPB.
定义: lib_description.h:146
GetCustomDataTypeDefault
BaseContainer GetCustomDataTypeDefault(Int32 type)
DESC_ALIGNLEFT
@ DESC_ALIGNLEFT
Bool Align element left.
定义: lib_description.h:137
DESC_SEPARATORLINE
@ DESC_SEPARATORLINE
Bool true if separators should have a visible line.
定义: lib_description.h:122
BaseContainer::SetData
GeData * SetData(Int32 id, const GeData &n)
定义: c4d_basecontainer.h:255
DTYPE_SEPARATOR
@ DTYPE_SEPARATOR
Separator.
定义: lib_description.h:63
DESC_ANIMATE
@ DESC_ANIMATE
Int32 Animation mode:
定义: lib_description.h:104
GeData::SetCustomDataType
void SetCustomDataType(Int32 datatype, const CustomDataType &v)
定义: c4d_gedata.h:664
ID_OBJECTPROPERTIES
@ ID_OBJECTPROPERTIES
定义: obase.h:53
DESC_UNIT_METER
@ DESC_UNIT_METER
FORMAT_METER
定义: lib_description.h:115
DescID
定义: lib_description.h:327
GeData::GetType
Int32 GetType(void) const
定义: c4d_gedata.h:407
BaseContainer::SetInt32
void SetInt32(Int32 id, Int32 l)
定义: c4d_basecontainer.h:505
DESC_PARENTMSG
@ DESC_PARENTMSG
DescID Used in the Material Editor on the boolean tabs to specify which section to open.
定义: lib_description.h:161
DESC_SHADERLINKFLAG
@ DESC_SHADERLINKFLAG
Bool Specifies that this element is a shader link. (Only if datatype==DTYPE_BASELISTLINK....
定义: lib_description.h:164
BaseContainer::SetString
void SetString(Int32 id, const maxon::String &s)
定义: c4d_basecontainer.h:569
DESC_MATEDNOTEXT
@ DESC_MATEDNOTEXT
Bool No text in Material Editor window.
定义: lib_description.h:162
DTYPE_BASELISTLINK
@ DTYPE_BASELISTLINK
BaseLink.
定义: lib_description.h:74
DESC_FORBID_INLINE_FOLDING
@ DESC_FORBID_INLINE_FOLDING
Bool Instructs the Attribute Manager to not allow expanding inline objects for entry.
定义: lib_description.h:144
DESC_CYCLE
@ DESC_CYCLE
BaseContainer Contains members of cycle as string. (E.g. GetString(10041) == "-X"....
定义: lib_description.h:118
CUSTOMDATATYPE_DESCID
#define CUSTOMDATATYPE_DESCID
DescID custom data type ID.
定义: lib_description.h:260
DescID::IsPartOf
Bool IsPartOf(const DescID &cmp, Int32 *pos) const
DATETIME_DATE_CONTROL
#define DATETIME_DATE_CONTROL
Bool true, if it is a calendar.
定义: customgui_datetime.h:29
Ocube
#define Ocube
Cube.
定义: ge_prepass.h:1040
MAXON_SOURCE_LOCATION
#define MAXON_SOURCE_LOCATION
定义: memoryallocationbase.h:66
DESC_COLUMNS
@ DESC_COLUMNS
Int32 Number of columns for layout groups (DTYPE_GROUP).
定义: lib_description.h:127
BaseContainer::SetBool
void SetBool(Int32 id, Bool b)
定义: c4d_basecontainer.h:498
Description::SetParameter
Bool SetParameter(const DescID &id, const BaseContainer ¶m, const DescID &groupid)
DESC_MAXSLIDER
@ DESC_MAXSLIDER
Int32/Float/Vector Maximum value for slider.
定义: lib_description.h:133
DESC_NEWLINE
@ DESC_NEWLINE
Bool Line break.
定义: lib_description.h:139
DESC_MIN
@ DESC_MIN
Int32/Float/Vector Minimum value.
定义: lib_description.h:99
CUSTOMGUI_BUTTON
#define CUSTOMGUI_BUTTON
Button.
定义: lib_description.h:216
CUSTOMGUI_REALSLIDER
#define CUSTOMGUI_REALSLIDER
Float edit field with slider.
定义: lib_description.h:201
BITMAPBUTTON_ICONID1
#define BITMAPBUTTON_ICONID1
Int32 Registered icon bitmap ID. On state for toggle buttons.
定义: customgui_bitmapbutton.h:47
DTYPE_GROUP
@ DTYPE_GROUP
Group.
定义: lib_description.h:56
DATETIME_GUI
#define DATETIME_GUI
DateTime custom GUI ID.
定义: customgui_datetime.h:20
CUSTOMDATATYPE_BITMAPBUTTON
#define CUSTOMDATATYPE_BITMAPBUTTON
Bitmap button custom data ID.
定义: customgui_bitmapbutton.h:28
DESC_FORBID_SCALING
@ DESC_FORBID_SCALING
Bool Prevents auto-scaling of the parameter with the scale tool (for DESC_UNIT_METER).
定义: lib_description.h:145
Osphere
#define Osphere
Sphere.
定义: ge_prepass.h:1041
String
定义: c4d_string.h:38
DTYPE_BUTTON
@ DTYPE_BUTTON
Button.
定义: lib_description.h:61
String::IntToString
static String IntToString(Int32 v)
定义: c4d_string.h:495
DESC_UNIT_PERCENT
@ DESC_UNIT_PERCENT
FORMAT_PERCENT
定义: lib_description.h:113
DATETIME_TIME_CONTROL
#define DATETIME_TIME_CONTROL
Bool true, if it is a clock.
定义: customgui_datetime.h:28
DESC_CYCLEICONS
@ DESC_CYCLEICONS
BaseContainer Icon IDs for cycle.
定义: lib_description.h:141
DESC_ANIMATE_OFF
@ DESC_ANIMATE_OFF
Parameter is not animatable.
定义: lib_description.h:105
DTYPE_VECTOR
@ DTYPE_VECTOR
向量
定义: lib_description.h:70
IDM_CUT
#define IDM_CUT
Cut.
定义: ge_prepass.h:3604
DESC_SHORT_NAME
@ DESC_SHORT_NAME
String Short name, for attributes dialog.
定义: lib_description.h:92
IDM_DELETE
#define IDM_DELETE
Delete.
定义: ge_prepass.h:3607
DescLevel
Represents a level within a DescID.
定义: lib_description.h:286
DESC_MAX
@ DESC_MAX
Int32/Float/Vector Maximum value.
定义: lib_description.h:100
DTYPE_LONG
@ DTYPE_LONG
Int32
定义: lib_description.h:67
NOTOK
#define NOTOK
定义: ge_sys_math.h:265
DTYPE_STRING
@ DTYPE_STRING
String.
定义: lib_description.h:72
Tbaselist2d
#define Tbaselist2d
2D list.
定义: ge_prepass.h:938
DESC_HIDE
@ DESC_HIDE
Bool Indicates whether the property is hidden or not.
定义: lib_description.h:119
GeData
定义: c4d_gedata.h:82
Int32
maxon::Int32 Int32
定义: ge_sys_math.h:58
ApplicationOutput
#define ApplicationOutput(formatString,...)
定义: debugdiagnostics.h:207
Description::GetSingleDescID
const DescID * GetSingleDescID()
Private.
BaseContainer::SetFloat
void SetFloat(Int32 id, Float r)
定义: c4d_basecontainer.h:533
CustomDataType
Base class for custom data types.
定义: c4d_customdatatype.h:50
DESC_NOGUISWITCH
@ DESC_NOGUISWITCH
Bool Disables GUI switching for this description element.
定义: lib_description.h:165
DESC_SCALEH
@ DESC_SCALEH
Bool Scale element horizontally.
定义: lib_description.h:135
DESC_CUSTOMGUI
@ DESC_CUSTOMGUI
Int32 The ID of the GUI for this element. Either a custom ID or one of: CUSTOMGUI
定义: lib_description.h:125
DESC_ACCEPT
@ DESC_ACCEPT
BaseContainer Contains the accepted IDs as strings. For C4DAtom::IsInstanceOf() checks....
定义: lib_description.h:121
CUSTOMGUI_SEPARATOR
#define CUSTOMGUI_SEPARATOR
Separator.
定义: lib_description.h:218
DATETIME_DATA
#define DATETIME_DATA
DateTime custom data ID.
定义: customgui_datetime.h:23
GeData::GetCustomDataType
CustomDataType * GetCustomDataType(Int32 datatype) const
定义: c4d_gedata.h:507
DATETIME_NOW_BUTTON
#define DATETIME_NOW_BUTTON
Bool true, to add "Now" button.
定义: customgui_datetime.h:30
BaseContainer::SetContainer
void SetContainer(Int32 id, const BaseContainer &s)
定义: c4d_basecontainer.h:597
DESC_NAME
@ DESC_NAME
String Name for standalone use.
定义: lib_description.h:91
BITMAPBUTTON_BUTTON
#define BITMAPBUTTON_BUTTON
定义: customgui_bitmapbutton.h:35
DESC_UNIT_DEGREE
@ DESC_UNIT_DEGREE
FORMAT_DEGREE
定义: lib_description.h:114
DESC_PARENTGROUP
@ DESC_PARENTGROUP
Int32/DescID Parent ID.
定义: lib_description.h:117
DESC_UNIT
@ DESC_UNIT
Int32 Unit for DTYPE_REAL/DTYPE_VECTOR:
定义: lib_description.h:110
DESC_DEFAULT
@ DESC_DEFAULT
Int32/Float/Vector Default numeric value.
定义: lib_description.h:120
CUSTOMGUI_BITMAPBUTTON
#define CUSTOMGUI_BITMAPBUTTON
Bitmap button custom GUI ID.
定义: customgui_bitmapbutton.h:25
CUSTOMGUI_CYCLE
#define CUSTOMGUI_CYCLE
Selection list field.
定义: lib_description.h:208
DTYPE_REAL
@ DTYPE_REAL
Float
定义: lib_description.h:68
DESC_STEP
@ DESC_STEP
Int32/Float/Vector The step for the edit field arrows.
定义: lib_description.h:103
BOOL_PAGEMODE
#define BOOL_PAGEMODE
Page mode for boolean elements. If set it means that this boolean will have no checkbox....
定义: lib_description.h:31
DESC_PARENT_COLLAPSE
@ DESC_PARENT_COLLAPSE
Int32 Parent collapse ID.
定义: lib_description.h:143
DESC_MINSLIDER
@ DESC_MINSLIDER
Int32/Float/Vector Minimum value for slider.
定义: lib_description.h:132
CUSTOMGUI_TEXBOX
#define CUSTOMGUI_TEXBOX
Shader link custom GUI ID.
定义: customgui_texbox.h:18
MAXON_SCOPE
#define MAXON_SCOPE
定义: apibase.h:2645
BaseContainer
定义: c4d_basecontainer.h:46
DTYPE_STATICTEXT
@ DTYPE_STATICTEXT
Static text.
定义: lib_description.h:64

Copyright  © 2014-2025 乐数软件    

工业和信息化部: 粤ICP备14079481号-1