THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/01/2003 at 02:01, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.012
Platform: Windows ;
Language(s) : C++ ;
---------
I've been trying to track down a problem where I get completely different results when rendering to the editor than I do when rendering to picture viewer.
I'm using a custom shader which is dependent upon an external object (like the SLA proximal shader).
My plugin includes the following in the 'Output()' method to access the object:
BaseDocument *bd = GetActiveDocument();
BaseContainer *data = chn->GetDataInstance();
obj = data->GetObjectLink(MY_REF, bd);
This correctly returns the object when it is rendering the view in the editor window, but returns a NULL link when rendering to the picture viewer...
Am I doing something wrong, or is this a bug.
How does proximal access the object data?
Thanks for any help.
Cheers - Steve