On 14/06/2013 at 17:02, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
---------
Hi all,
i'm trying to add the VPBUFFER_POSTEFFECT to the multipass without luck.
if (addPostFX)
{
MultipassObject *mpo = NULL;
mpo = (MultipassObject* )BaseList2D::Alloc(Zmultipass);
if (mpo)
{
//mpo->SetName("VrayBridge MP Object");
BaseContainer *data = mpo->GetDataInstance();
data->SetLong(MULTIPASSOBJECT_TYPE, PBUFFER_POSTEFFECT);
rd->InsertMultipass(mpo, NULL);
rd->Message(MSG_UPDATE);
EventAdd();
}
}
Thanks in advance
Renato T.