On 05/09/2017 at 07:55, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 18
Platform: Windows ;
Language(s) : C++ ;
---------
Hi All,
I'm currently writing a c4d c++ object generator plugin, the plugin depends on the modification of
other objects in the same scene, so when other objects updates the plugin should have an indicator
that one or more dependent objects got updated so I can update the generated object in GetVirtualObject function.
Problem is, when I check other object's dirty status using the following code:
BaseObject::IsDirty(DIRTYFLAGS_MATRIX | DIRTYFLAGS_DATA | DIRTYFLAGS_CACHE)
the code always returns false if the modified object is ABOVE the generator object in
ObjectManager panel! although, the same code returns true if the object is modified
but if it is BELOW the object generator node in ObjectManager panel!
Can anyone please explain what is happening here? also, is there any better way to inform the
main object generator node that other objects were modified ?
Also, note that none of the modified objects are children of the generator plugin
the generator node just needs to update it's data when one of other objects update.
Thanks in advance.