Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > SDK Help
  New Posts New Posts
  FAQ FAQ  Forum Search   Register Register  Login Login

Detecting changes in hierarchy structure [SOLVED]

 Post Reply Post Reply
Author
Message
c4dJack View Drop Down
Member
Member
Avatar

Joined: 2007 Jul 13
Location: Berlin
Online Status: Offline
Posts: 638
Post Options Post Options   Quote c4dJack Quote  Post ReplyReply Direct Link To This Post Topic: Detecting changes in hierarchy structure [SOLVED]
    Posted: 2017 Jul 14 at 3:25am

User Information:

Cinema 4D Version:   12 - 18 
Platform:   Windows  ; Mac  ;  
Language(s):     C++  ;   

---------

Hi all,

from the GetVirtualObjects() of my generator, I need to detect if changes to the hierarchical structure of its children have occurred.

For example, the childrens' hierarchy looks like this:


And the user changes it like this:


After changing the hierarchy like shown above, none of the objects becomes dirty. And checking the generator's dirtyness with DIRTYFLAGS_CHILDREN also doesn't help.

GetAndCheckHierarchyClone() notices the change. But I don't always want a hierarchy clone to be created (since I'm only drawing a simplified representation of my generator's results in most cases). I just need to know if the hierarchy of my generator's children has changed. Is there any way to do that?

Thanks & greetings,
Frank


Edited by c4dJack - 2017 Jul 14 at 5:38am
Back to Top
c4dJack View Drop Down
Member
Member
Avatar

Joined: 2007 Jul 13
Location: Berlin
Online Status: Offline
Posts: 638
Post Options Post Options   Quote c4dJack Quote  Post ReplyReply Direct Link To This Post Posted: 2017 Jul 14 at 5:37am
Ha, solved!

calling op->GetHDirty(HDIRTYFLAGS_OBJECT_HIERARCHY) and comparing the result to the previous result does the trick. Totally didn't have HDirty on my radar anymore...

Greetings,
Frank
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.094 seconds.