On 10/06/2015 at 03:00, xxxxxxxx wrote:
User Information:
Cinema 4D Version:
Platform:
Language(s) :
---------
Hi! I use MSG_MULTI_RENDERNOTIFICATION to modify a document before it is rendered. For instance,
inserting an object works, but modifying the active render settings does not. I guess this is because there
is a BaseContainer passed for the render settings on RenderDocument().
I see that I can read and write the render settings via Render::GetRenderData() and
Render::SetRenderData(), but how would I then go about modifying settings for a Video Post?
switch (msg) {
case MSG_MULTI_RENDERNOTIFICATION: {
auto* data = static_cast<RenderNotificationData*>(pdata);
if (!data->start || !data->external) break;
data->doc->InsertObject(BaseObject::Alloc(Ocube));
BaseContainer bc = data->render->GetRenderData();
bc.SetFilename(RDATA_PATH, "");
data->render->SetRenderData(bc);
if (bc.GetInt32(RDATA_RENDERENGINE) == VRAYBRIDGE_ID) {
// todo: How would I go about changing settings for the Vray Bridge video post here (or any other)?
}
break;
}
}
Thanks in advance!
Niklas