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.
{
BaseTake*
const materialVariation = takeData->AddTake(takeName,
nullptr,
nullptr);
if (materialVariation == nullptr)
const GeData newValue { rgb };
if (overrideNode == nullptr)
}
Py_ssize_t i
Definition: abstract.h:645
Definition: c4d_basematerial.h:28
Definition: lib_takesystem.h:79
void UpdateSceneNode(TakeData *takeData, const DescID &descID)
Definition: lib_takesystem.h:323
BaseOverride * FindOrAddOverrideParam(TakeData *takeData, BaseList2D *node, const DescID &descID, const GeData &overrideValue, const GeData &backupValue=GeData(), Bool deleteAnim=false)
Int32 GetType() const
Definition: c4d_baselist.h:1393
Definition: lib_description.h:330
Definition: c4d_gedata.h:83
Definition: c4d_string.h:39
static String IntToString(Int32 v)
Definition: c4d_string.h:495
maxon::Int32 Int32
Definition: ge_sys_math.h:60
maxon::Float Float
Definition: ge_sys_math.h:66
return OK
Definition: apibase.h:2667
@ DTYPE_COLOR
Color.
Definition: lib_description.h:57
#define Mmaterial
Standard material.
Definition: ge_prepass.h:992
#define MAXON_SOURCE_LOCATION
Definition: memoryallocationbase.h:67
@ MATERIAL_COLOR_COLOR
Definition: mmaterial.h:56
const char * doc
Definition: pyerrors.h:226
Represents a level within a DescID.
Definition: lib_description.h:289
Access
Existing BaseOverride objects can be accessed from the BaseTake or the TakeData object:
if (object == nullptr)
BaseTake*
const take = takeData->GetCurrentTake();
if (take == nullptr)
if (baseOverride == nullptr)
Definition: c4d_baseobject.h:225
BaseOverride * FindOverride(TakeData *takeData, BaseList2D *node)
Allocation/Deallocation
Overrides are created using the host BaseTake:
const DescID ID { cubeSizeLevel, vectorXLevel };
const GeData newValue { 300.0 };
if (overrideNode == nullptr)
@ DTYPE_VECTOR
Vector
Definition: lib_description.h:70
@ DTYPE_REAL
Float
Definition: lib_description.h:68
@ VECTOR_X
X component.
Definition: lib_description.h:269
@ PRIM_CUBE_LEN
Definition: ocube.h:6
- 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)
{
}
Bool IsOverriddenParam(const DescID &descID)
Bool SetParameter(const DescID &id, const GeData &t_data, DESCFLAGS_SET flags)
Bool GetParameter(const DescID &id, GeData &t_data, DESCFLAGS_GET flags)
Float GetFloat(void) const
Definition: c4d_gedata.h:439
#define Osphere
Sphere.
Definition: ge_prepass.h:1096
@ PRIM_SPHERE_RAD
Definition: osphere.h:6
Further Reading