On 23/05/2013 at 04:18, xxxxxxxx wrote:
Cinema 4D Version: 14
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
Is there a way to get notified when a object(camera) is deleted or renamed?
On 23/05/2013 at 04:54, xxxxxxxx wrote:
from a coremessage method listen for EVMSG_CHANGE and then check the reference/pointer
on your object if its none, its gone if it is still a GeListNode you can check the name.
On 23/05/2013 at 06:03, xxxxxxxx wrote:
I have registered a MessageData-Plugin and get EVMSG_CHANGE in the coremessage function. I am storing a BaseObject * m_object somewhere in my plugin. How should I check my pointer m_object if it is none? I mean m_object doesn't get NULL'ed automatically when the user deletes my object.
The EVMGS_CHANGE doesn't give me information about which object has changed or deleted, right?
Can you help me?
On 23/05/2013 at 06:23, xxxxxxxx wrote:
Store a BaseLink to the object instead of a direct pointer. It will allow you to check if the object
does still exist or not.
On 23/05/2013 at 09:31, xxxxxxxx wrote:
Ok. This works.
But I still have to find out which one was deleted and which one was renamed all by myself instead C4D is doing this for me, right?
I would expect that the SDK is doing this for me.
On 23/05/2013 at 10:00, xxxxxxxx wrote:
Well, do you want to checl for a specific object, if it was deleted or renamed, or the whole hierarchy?