About
A MultipassObject represents a multipass element of the render settings. Cinema 4D's render engines will render and save different multipasses based on these settings.
MultipassObject objects are an instance of Zmultipass
.
while (multipass != nullptr)
{
{
depthPass = multipass;
break;
}
}
if (depthPass == nullptr)
{
if (depthPass == nullptr)
}
Definition: c4d_basecontainer.h:48
Int32 GetInt32(Int32 id, Int32 preset=0) const
Definition: c4d_basecontainer.h:348
void SetInt32(Int32 id, Int32 l)
Definition: c4d_basecontainer.h:587
const BaseContainer & GetDataInstanceRef() const
Definition: c4d_baselist.h:2517
static BaseList2D * Alloc(Int32 type)
Bool SetParameter(const DescID &id, const GeData &t_data, DESCFLAGS_SET flags)
Bool Message(Int32 type, void *data=nullptr)
Definition: c4d_baselist.h:1582
Definition: c4d_basedocument.h:112
MultipassObject * GetNext()
Definition: c4d_basedocument.h:126
Definition: c4d_basedocument.h:143
MultipassObject * GetFirstMultipass()
void InsertMultipass(MultipassObject *obj, MultipassObject *pred=nullptr)
@ RDATA_MULTIPASS_ENABLE
Definition: drendersettings.h:330
maxon::Int32 Int32
Definition: ge_sys_math.h:56
#define MSG_UPDATE
Must be sent if the bounding box has to be recalculated. (Otherwise use MSG_CHANGE....
Definition: c4d_baselist.h:359
#define MAXON_SOURCE_LOCATION
Definition: memoryallocationbase.h:67
#define VPBUFFER_DEPTH
Depth multipass channel.
Definition: c4d_videopostdata.h:131
#define Zmultipass
Definition: ge_prepass.h:1294
#define ConstDescID(...)
Definition: lib_description.h:594
PyObject ** type
Definition: pycore_pyerrors.h:34
const char * doc
Definition: pyerrors.h:226
Represents a level within a DescID.
Definition: lib_description.h:298
@ MULTIPASSOBJECT_TYPE
Definition: zmultipass.h:6
Access
Existing MultipassObject elements are stored in a list and can be accessed from a RenderData object:
Allocation/Deallocation
The MultipassObject class does not offer a static "Alloc" or "Free" function so the functions of BaseList2D have to be used with Zmultipass.
A newly created MultipassObject is added to the render settings by adding it to the RenderData object:
if (depthPass == nullptr)
Navigate
MultipassObject objects are organized in a list:
while (multipass != nullptr)
{
}
String GetName() const
Definition: c4d_baselist.h:2543
#define ApplicationOutput(formatString,...)
Definition: debugdiagnostics.h:204
Types
All multipasses are MultipassObject objects. They only differ in their parameters. The type of a multipass is defined with:
Simple multipass types are:
Configurable multipass types are:
The parameter IDs of configurable multipasses are defined in zmultipass.h
.
Additional multipass types are:
Example object buffer:
if (multipass == nullptr)
#define VPBUFFER_OBJECTBUFFER
Object buffer multipass channel.
Definition: c4d_videopostdata.h:141
@ MULTIPASSOBJECT_OBJECTBUFFER
Definition: zmultipass.h:8
Example blend channel:
if (multipass == nullptr)
void SetBool(Int32 id, Bool b)
Definition: c4d_basecontainer.h:580
#define VPBUFFER_BLEND
Blend multipass channel.
Definition: c4d_videopostdata.h:151
@ MULTIPASSOBJECT_DIFFUSE
Definition: zmultipass.h:14
@ MULTIPASSOBJECT_SHADOW
Definition: zmultipass.h:16
Example reflection channel:
if (multipass == nullptr)
#define VPBUFFER_REFLECTION
Reflection multipass channel.
Definition: c4d_videopostdata.h:121
@ MULTIPASSOBJECT_REFLECTION_MATERIALS
Definition: zmultipass.h:25
@ MULTIPASSOBJECT_REFLECTION_SEPARATE_ALL
Definition: zmultipass.h:27
Example specular channel:
if (multipass == nullptr)
#define VPBUFFER_SPECULAR
Specular multipass channel.
Definition: c4d_videopostdata.h:119
@ MULTIPASSOBJECT_SPECULAR_SEPARATE_ALL
Definition: zmultipass.h:40
@ MULTIPASSOBJECT_SPECULAR_MATERIALS
Definition: zmultipass.h:38
Further Reading