THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/11/2011 at 21:46, xxxxxxxx wrote:
Cinema 4D Version: R13
Platform: Windows ;
Language(s) : C++ ;
I used CustomDataType Gradient in VideoPostData's Execute function.
Now R13, Gradient->InitRender function requires InitRenderStruct.
How can I get InitRenderStruct in VideoPostData's Execute function?
On 11/11/2011 at 01:38, xxxxxxxx wrote:
In this case you have to initialize the InitRenderStruct with the current document and assign the volume data manually:
if (!vps->doc) return RENDERRESULT_OUTOFMEMORY;
// Initialize the InitRenderStruct with the infos from the document
// Assign the volume data of the VideoPostStruct to the InitRenderStruct volume data
irs.vd = vps->vd;
Tell me if this work for you.
On 11/11/2011 at 03:07, xxxxxxxx wrote:
Thank you for your help!
It was able to do well by the method.