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

    Saving the State of an object.

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 212 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 25/08/2009 at 19:11, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:    
      Platform:      
      Language(s) :

      ---------
      Hello,

      I was wondering if it was possible to save the sate of an object so that users can revert back to that state if need be. For example, if the users add my tag plugin to their geometry, I would like the tag to store the state of the object when the tag is added and then provide access to the original state through the click of a button. Would I use GetCache() for this?

      Any help would be greatly appreciated.

      Thanks,.

      ~Shawn

      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 25/08/2009 at 19:43, xxxxxxxx wrote:

        To retain an original state you could simply add a function that sets the resource descriptions in the BaseContainer to default values. You should already be doing something similar in the Init() function (hint). You could then have the Init() function call this function as well as a button do the same. Remember that the button will trigger a MSG_DESCRIPTION_COMMAND in the Message() function with the button's resource ID.

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