THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/04/2010 at 08:20, xxxxxxxx wrote:
Cinema 4D Version:
I'm probably missing something obvious here, but how do I add GI to the render settings? I thought that I could do PluginVideoPost::Alloc() then insert that into the active render data for the document. Of course, the Alloc() call wants the type of videopost as a parameter and I can't find that for GI in the SDK.
Am I going about this the right way or is GI not treated as a videopost? In which case, how do you add GI?
On 19/04/2010 at 02:06, xxxxxxxx wrote:
Yes, GI is allocated just like other videoposts.
The ID is VPglobalillumination.
Bool MenuTest::Execute(BaseDocument *doc)
RenderData *rdata = NULL;
rdata = doc->GetActiveRenderData();
if (!rdata) return FALSE;
PluginVideoPost *pvp = NULL;
pvp = PluginVideoPost::Alloc(VPglobalillumination);
if (!pvp) return FALSE;
On 19/04/2010 at 02:09, xxxxxxxx wrote:
Excellent! Thank you very much indeed. Problem solved.