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

    Undos in tool

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 381 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 05/04/2010 at 08:47, xxxxxxxx wrote:

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

      ---------
      Hi,

      I have a tool that purely generates custom data and does not modify the scene. However, I would like to add my custom data to the undo list. Is it possible? There is no CopyTo function and undo is not added to the c4d undo stack.

      What are my options?

      Thank you

      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/04/2010 at 09:04, xxxxxxxx wrote:

        Howdy,

        Could you possibly use a SceneHookData? It seems to inherit from a NodeData which has the CopyTo() function. I don't know if it is of any use, though in your situation.

        Adios,
        Cactus Dan

        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/04/2010 at 09:10, xxxxxxxx wrote:

          Hi,

          that´s actually a good idea. I´ll try that. Thanks for pointing it out.

          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/04/2010 at 09:21, xxxxxxxx wrote:

            Darn, doesn´t work in my case with a scenehook. thx anyway dan.

            So still looking for a working option.

            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/04/2010 at 09:40, xxxxxxxx wrote:

              Howdy,

              Yeah, on double checking, the only way to add an undo is with BaseDocument::AddUndo(), and a Scene Hook isn't associated with a document like objects and tags are.

              Could you possibly use a hidden tag? The only thing I could see with that is which object it would be on, and what if the user deletes that object. It's too bad there's no way to create a hidden object.

              Adios,
              Cactus Dan

              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/04/2010 at 09:45, xxxxxxxx wrote:

                The problem is that my tool doesn´t edit the scene or current object. It also works in any empty scene so that kind of erases such options.

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