THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/08/2010 at 15:28, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R10-R11
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
---------
I'm trying to get the preview bitmap of a Material before it is created in the document. A fake BaseDocument with an inserted Material has been created. The Material and channels have been set up and mat->Update(TRUE, FALSE) has been called but it always returns NULL on GetPreview().
Must the BaseDocument be inserted? I hope not as this is solely for showing a preview of how the Material will look when created by my Tool plugin.
Maybe there is need of mat->Message(MSG_UPDATE) after mat->Update()?
So far nothing seems to work and inserting the document leads to crashing.