On 25/09/2017 at 14:08, xxxxxxxx wrote:
I have an Object plugin with of course GetVirtualObjects().
The question, how do I get to know that a child was inserted or removed.
For example, should I check GetDirty() or do I get a message or do I just count the children each time?
On 26/09/2017 at 03:25, xxxxxxxx wrote:
Hi Pim, thanks for writing us.
With reference to your request, beside inviting you to have a look at the Generating section in the BaseObject Manual, consider that BaseObject::GetAndCheckHierarchyClone() already check if any of the children has been added or removed. At the same time you can use the C4DAtom::GetHDirty(HDIRTYFLAGS_OBJECT_HIERARCHY) to check the current dirty status (concerning any change occurred to the hierarchy) and comparing it with a value (previously stored) you can get advised if anything in the hierarchy has changed.
On 26/09/2017 at 04:32, xxxxxxxx wrote:
I am correct to assume that GetHDirty is implemented in R18 and later?
I am working in R16 or R17. Not everybody uses the latest version.
Also, I just want to check whether the hierarchy has changed, no need to clone.