About
FieldList is a custom data type that stores field layers (FieldLayer). Such a field layer represents a certain function or is referencing a FieldObject (FLfield). Typically one samples this FieldList and not the layers themselves.
A FieldList parameter can be found on MoGraph effectors or the "Falloff" shader.
The data type ID is CUSTOMDATATYPE_FIELDLIST.
FieldList
Sampling
The FieldList is easily sampled using these functions. The "Sample" functions sample the field in a multi-threaded context. If it is needed to control the sampling process use the "Direct" functions.
For information on FieldInfo and FieldOutput see FieldObject Manual.
if (fieldList == nullptr)
{
xOffset += stepSize;
}
sampleCnt,
Definition: lib_description.h:330
Field custom GUI (CUSTOMDATATYPE_FIELDLIST) for the Field list data.
Definition: customgui_field.h:59
maxon::Result< FieldOutput > SampleListSimple(BaseList2D &caller, const FieldInput &inputs, FIELDSAMPLE_FLAG flags=FIELDSAMPLE_FLAG::ALL)
Definition: c4d_gedata.h:83
CustomDataType * GetCustomDataType(Int32 datatype) const
Definition: c4d_gedata.h:507
Definition: basearray.h:412
MAXON_ATTRIBUTE_FORCE_INLINE const T * GetFirst() const
Definition: basearray.h:1326
ResultMem Resize(Int newCnt, COLLECTION_RESIZE_FLAGS resizeFlags=COLLECTION_RESIZE_FLAGS::DEFAULT)
Definition: basearray.h:1369
void Py_ssize_t * pos
Definition: dictobject.h:50
#define CUSTOMDATATYPE_FIELDLIST
Definition: customgui_field.h:26
maxon::Float64 Float64
Definition: ge_sys_math.h:67
#define MAXON_SOURCE_LOCATION
Definition: memoryallocationbase.h:67
@ FIELDS
Definition: ofalloff_panel.h:16
#define iferr_return
Definition: resultbase.h:1465
Base class for custom data types.
Definition: c4d_customdatatype.h:51
Definition: c4d_fielddata.h:116
Layers
The layers stored in the FieldList are accessed through:
Settings
FIELDLIST_FLAGS: are accessed through:
Further functions are:
FieldLayer
A FieldLayer represents a certain function or is referencing a FieldObject. To implement custom layers see FieldLayerData Manual.
Types
Existing layer types are:
Creation
A new layer is created with:
The FieldLayer tree can be navigated with:
if (fieldList == nullptr)
if (layer == nullptr)
Bool SetParameter(const DescID &id, const GeData &t_data, DESCFLAGS_SET flags)
Definition: c4d_fielddata.h:1148
void SetStrength(Float strength)
Definition: c4d_fielddata.h:1195
static FieldLayer * Alloc(Int32 type)
Definition: c4d_fielddata.h:1324
maxon::Result< void > InsertLayer(FieldLayer *layer, FieldLayer *parent=nullptr, FieldLayer *prev=nullptr)
@ FIELDLAYER_QUANTIZE_STEPS
Definition: flquantize.h:6
static const Int32 FLquantize
FieldLayer quantize remapping layer.
Definition: c4d_fielddata.h:86
Properties
If the layer links to another element in the scene this element can be accessed through:
The strength of a layer is defined by:
The blending mode (see flbase.h) is set/get by:
The channel flags (FIELDLAYER_CHANNELFLAG) are accessed through:
The channel flags are:
The layer flags (FIELDLAYER_FLAG) are set/get by:
The layer flags are:
Mask layers are handled with:
Sampling
A layer can directly be sampled by these functions:
FieldListGui
FieldListGui is the custom GUI element to display FieldList data. The GUI ID is CUSTOMGUI_FIELDLIST.
Further Reading