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
    • Recent
    • Tags
    • Users
    • Admin
    • Login

    IsDirty for deformed points [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    5 Posts 0 Posters 461 Views
    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 Offline
      Helper
      last edited by

      On 29/04/2016 at 17:56, xxxxxxxx wrote:

      How can I check if the points of an object were chanced by a deformer or by joints?
      Is it with IsDirty? If yes, how?

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

        On 02/05/2016 at 01:57, xxxxxxxx wrote:

        Hello,

        IsDirty() has nothing to do which changes of objects. It is used together with SetDirty() and Toch() inside a generator to handle child input objects. I guess you talk about GetDirty().

        GetDirty() together with DIRTYFLAGS_CACHE seems to deliver updated values when an object (or its deform cache) is changed by a child deformer.

        Best wishes,
        Sebastian

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

          On 02/05/2016 at 03:55, xxxxxxxx wrote:

          So, I must keep a global class variable with the checksum and check if it changed, in order to evaluate if the mesh changed?

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

            On 06/05/2016 at 09:08, xxxxxxxx wrote:

            Hello,

            yes, to compare two values you must store the previous value. What's the best way to store the value complete depends on what you actually do.

            Best wishes,
            Sebastian

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

              On 06/05/2016 at 12:47, xxxxxxxx wrote:

              I did it and it works fine.
              Thank you, Sebastian.

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