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
    • Login
    The Maxon SDK Team is currently short staffed due to the winter holidays. No forum support is being provided between 15/12/2025 and 5/1/2026. For details see Maxon SDK 2025 Winter Holidays.

    Undo and BaseContainer

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 223 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/04/2006 at 11:42, xxxxxxxx wrote:

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

      ---------
      Hi everyone!
      I have implemented a tag plugin which do some modifications on the points of an object thanks to sliders.  Several sliders can be added by the user and their values are used for the modifications.  Each time a slider is modified, the modification is made with a code like this one:
      ...
      // Modifications on the points selected by the tag
      ...
      doc->StartUndo();
      Bc.SetContainer(3000, m_vector);
      data.SetContainer(MYID, Bc);
      tag->SetData(data);
      tag->Message(MSG_UPDATE);
      doc->AddUndo(UNDO_CHANGE, tag);
      doc->EndUndo();
      where Bc is a BaseContainer in which my data (m_vector an other BaseContainer which contains several data) are stored.
      When I add two sliders and change the sliders values and next do Undo in Cinema4d, the two sliders are removed when the Undo should affect only the laste modification on the points.
      Does somebody have an explanation?
      Thanks a lot.

      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/04/2006 at 12:32, xxxxxxxx wrote:

        Attribute Manager changes usually store undos automatically, so you don't need to do undo wrapper. (?) Try it with those commented out and see if it makes a difference.

        Additionally, if you are doing this for every slider change, the undos will rack up quickly (and your undo buffer will only contain the last capture slider movements).

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