Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

I've made the current development version of Anim8or available for feedback. See the new forum "Ongoing Anim8or Development" for details.

Author Topic: Undo support for scripts  (Read 844 times)

nemyax

  • Full Member
  • ***
  • Posts: 180
    • View Profile
Undo support for scripts
« on: February 04, 2016, 04:13:47 pm »

What's the situation with undo support for scripted actions? Apparently they cannot generally be undone, but polyGon_tError mentions that some script of his is fully undoable. How does it really stand? Are there plans to change it?
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 1371
    • View Profile
Re: Undo support for scripts
« Reply #1 on: February 04, 2016, 09:38:26 pm »

Adding a well designed, general Undo for scripts is an enormous task.  You can literally change anything an Object.  Simply saving a copy of the entire Object, all materials, etc. is less work but that would be a rather inelegant solution and would use a great deal of memory.
Logged

tazdij

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Undo support for scripts
« Reply #2 on: January 05, 2017, 09:28:54 am »

What about a function that a script can leverage to set a checkpoint? Then in your script VM, track the commands issued from that point. Just an idea, without knowing how this is implemented I really don't know what the options are.
Logged