THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/11/2006 at 03:15, xxxxxxxx wrote:
Cinema 4D Version: 9,603
Platform: Windows ;
Language(s) : C++ ;
how do i define a BaseDocument corectly.
My code doesn't work
BaseMaterial *ma = doc->GetFirstMaterial();
On 28/11/2006 at 03:57, xxxxxxxx wrote:
BaseDocument *doc = GetActiveDocument();
On 28/11/2006 at 04:23, xxxxxxxx wrote:
Not sure what you trying to achieve. If you want to create a new empty document you have to use the Alloc() and Free() functions.
Use Alloc() to create the document.
BaseDocument *mydoc = BaseDocument::Alloc();
Use Free() to destroy to document.
You can also use the scope based AutoAlloc template class.