How to get the description in a message handler?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/03/2010 at 12:59, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11
Platform: Mac OSX ;
Language(s) : C++ ;---------
I have an expression tag, and would like to make changes on a description during the Message method.
I catch the MSG_DESCRIPTION_CHECKUPDATE message. So far, so good...Here's my question:
How do I get the BaseContainer of my description in this method? Reading to a couple of posts I found that it could have to do with DescriptionCheckUpdate->decsID, but the documentation misses a lot of background how this is suppose to work.
Any help would be appreciated.
Thanks!
Kabe
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/03/2010 at 23:52, xxxxxxxx wrote:
Ok, resolved...
Bool MyPlugin::Message(GeListNode *node, LONG type, void *data) { switch (type) { case MSG_DESCRIPTION_CHECKUPDATE: { BaseContainer *bc = ((BaseList2D* )node)->GetDataInstance(); if (bc) { ...do whatever you have to do... } } } return SUPER::Message(node, type, data); }