THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/02/2008 at 04:31, xxxxxxxx wrote:
Cinema 4D Version:
i got a little problem with this function. One of my buttons controlled by this function will allocate an Object and insert it in the document: I use
doc->InsertObject(spline,NULL,NULL);[\CODE] where doc is the Basedocument. Any ideas how i can get the document object?
Source is like this:
GeDialogMod::Command(LONG id, const BaseContainer& msg)
BaseObject* object1 = BaseObject::Alloc(Ocylinder);
BaseDocument *document1 = ?????;
The only object i gave over to the CommandFunction is id and msg and i don't see a function to get the BaseDocument ....
On 13/02/2008 at 06:48, xxxxxxxx wrote:
You can use GetActiveDocument() to get the currently active document.
On 13/02/2008 at 11:55, xxxxxxxx wrote:
You got an walkthrough for this, right ??? *g*