THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/07/2007 at 12:01, xxxxxxxx wrote:
Cinema 4D Version: R10
Platform: Mac OSX ;
Language(s) : C++ ;
I'm working on a ObjectData plugin where I have a link to a polygon object.
I get access to the object when I receive the message: MSG_DESCRIPTION_CHECKDRAGANDDROP on the link field.
I can get floats with
BaseContainer *data = op->GetDataInstance();
Real rad = data->GetReal(AIMAPOBJECT_RAD);
so the question is how do I go about getting a reference to the object in the Link field which id is INSTANCEOBJECT_LINK?
I looked in the ObjectData and all the super classes, but can't find the method that would do the job
On 25/07/2007 at 12:44, xxxxxxxx wrote:
If the link is a static description resource on your plugin object, then all you need do it this:
BaseContainer* data = op->GetDataInstance();
BaseObject* linkOp = data->GetObjectLink(INSTANCEOBJECT_LINK, op->GetDocument());