Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Tag Changed in parent

    SDK Help
    0
    2
    210
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      On 20/09/2016 at 12:23, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R17 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hello.

      I scan the hierarchy and I store the dirty bits for each object, so I can detect any changes.
      When a tag is changed,  the DIRTYFLAGS_CACHE and DIRTYFLAGS_DATA counters of that objects are updated.

      The children remain the same (their dirty bits don't change) even though some tags, such as Compositing, affect the children as well.

      Is there anyway to detect these changes in the children as well or do I simply have to consider the children updated any time the parent's bits have changed ?

      Thank you for your time.

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 21/09/2016 at 03:15, xxxxxxxx wrote:

        Hi,

        the point here is, that the Compositing tag is basically just a BaseContainer, which contents are used by and provide hints to the rendering pipeline. The Compositing tag doesn't change any of the children of its host object and thus there are no changes in the dirty flags.
        While I haven't done any further testing, I'd expect for example a Dynamics tag with "Inherit Tag" set to "Apply Tag to Children" would very well change the dirty counts of child objects.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post