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

    CustomGuiData Flags - where to set?

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 354 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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 03/05/2006 at 16:25, xxxxxxxx wrote:

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

      ---------
      Looking at the SDK, I don't see where to set the flag CUSTOMDATATYPE_INFO_UNDOSAMECUSTOMGUI for my dynamic description sliders (REAL) so that one undo only resets one slider (and not all of them).

      Thanks,

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 03/05/2006 at 16:57, xxxxxxxx wrote:

        To add more clarity, a set of REAL sliders is added to my plugin objects AM using GetDDescription(). If several sliders are interactively changed, a subsequent undo (CTRL-Z) restores them all to their previous values - not just the last slider changed. Doesn't the AM automatically handle undos for keys, tags, objects, etc. and so on?

        There are tracks/seqs/keys for each slider and if "Automatic Keyframing" is enabled, the behaviour is proper (one undo for each slider). I want this behaviour without enabling that if possible.

        Thanks,

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 05/05/2006 at 02:18, xxxxxxxx wrote:

          hmm, actually c4d handles this for objects etc. itself, only for custom datatypes you need to worry about this yourself (for customguis it seems to handle this itself too. Works at least for my REAL customgui).

          CUSTOMDATATYPE_INFO_UNDOSAMECUSTOMGUI only needs to be set in RegisterCustomDataTypePlugin() when you write your own datatypes afaik. Adding REAL slider therefore should be handled by c4d.

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

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 05/05/2006 at 02:24, xxxxxxxx wrote:

            In my case, it doesn't. I think this may be related to the keys corresponding to the sliders (which were not also set in the process). Once I updated the keys instead, the behavior was as expected. So, it is suspected that the keys were somehow restoring other sliders when the undo was done since they had not been changed. That's my best guess. 🙂

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