About
A BaseOverride defines the settings for a specific BaseList2D object in a certain take.
- Note
- BaseOverride objects are stored with the changed object. One should not access them directly, only through BaseTake.
for (
Int32 i = 0; i < 10; ++i)
{
BaseTake*
const materialVariation = takeData->
AddTake(takeName,
nullptr,
nullptr);
if (materialVariation == nullptr)
const GeData newValue { rgb };
if (overrideNode == nullptr)
}
Access
Existing BaseOverride objects can be accessed from the BaseTake or the TakeData object:
if (object == nullptr)
if (take == nullptr)
if (baseOverride == nullptr)
Allocation/Deallocation
Overrides are created using the host BaseTake:
const DescID ID { cubeSizeLevel, vectorXLevel };
const GeData newValue { 300.0 };
if (overrideNode == nullptr)
- Note
- To delete a specific parameter from an override BaseTake::DeleteOverride() must be used.
Navigation
BaseOverride instances are organized in a BaseList2D list:
- Note
- Functions like BaseOverride::GetUp() etc. are reserved for future use.
Read-Only Properties
The following properties can be accessed:
Override
A BaseOverride stores the values of different parameters. These parameters can be accessed in different ways:
if (baseOverride == nullptr)
{
}
Further Reading
Bool IsOverriddenParam(const DescID &descID)
@ PRIM_CUBE_LEN
Definition: ocube.h:6
Definition: c4d_baseobject.h:224
Definition: lib_description.h:328
Definition: lib_takesystem.h:319
@ VECTOR_X
X component.
Definition: lib_description.h:268
maxon::Float Float
Definition: ge_sys_math.h:66
Definition: lib_takesystem.h:78
BaseMaterial * GetActiveMaterial(void)
return OK
Definition: apibase.h:2546
BaseTake * AddTake(const String &name, BaseTake *parent, BaseTake *cloneFrom)
#define MAXON_SOURCE_LOCATION
Definition: memoryallocationbase.h:66
#define Osphere
Sphere.
Definition: ge_prepass.h:1050
Definition: c4d_string.h:38
static String IntToString(Int32 v)
Definition: c4d_string.h:495
Bool SetParameter(const DescID &id, const GeData &t_data, DESCFLAGS_SET flags)
BaseTake * GetCurrentTake()
@ DTYPE_VECTOR
Vector
Definition: lib_description.h:70
Represents a level within a DescID.
Definition: lib_description.h:287
void UpdateSceneNode(TakeData *takeData, const DescID &descID)
Definition: c4d_gedata.h:82
maxon::Int32 Int32
Definition: ge_sys_math.h:60
#define Mmaterial
Standard material.
Definition: ge_prepass.h:957
@ PRIM_SPHERE_RAD
Definition: osphere.h:6
BaseObject * GetActiveObject(void)
@ MATERIAL_COLOR_COLOR
Definition: mmaterial.h:56
BaseOverride * FindOrAddOverrideParam(TakeData *takeData, BaseList2D *node, const DescID &descID, const GeData &overrideValue, const GeData &backupValue=GeData(), Bool deleteAnim=false)
@ DTYPE_REAL
Float
Definition: lib_description.h:68
BaseOverride * FindOverride(TakeData *takeData, BaseList2D *node)
Int32 GetType() const
Definition: c4d_baselist.h:1377
Definition: c4d_basematerial.h:27
@ DTYPE_COLOR
Color.
Definition: lib_description.h:57
Bool GetParameter(const DescID &id, GeData &t_data, DESCFLAGS_GET flags)
Float GetFloat(void) const
Definition: c4d_gedata.h:439