Undo/redo

  • Blazeblaze
    11th Dec 2021 Member 1 Permalink

    I found it a problem when I was makeing a save that I had done to many actions and I was not able to go back to where I was at before and I had to redo almost the whole save. Im thinking that you should beable to undo as many times as you please, and incase you go back to far you should be able to redo.

    Edited once by Blazeblaze. Last: 11th Dec 2021
  • EnganK
    11th Dec 2021 Member 2 Permalink

    Just set "UndoHistoryLimit" in powder.pref to bigger number.

    Edited once by EnganK. Last: 11th Dec 2021
  • 008cff
    16th January Member 0 Permalink

    @EnganK (View Post)

     where is powder.pref if i put it into console it just gives error "console:1: attempt to index global 'powder' (a nil value)"

  • Jerehmia
    17th January Member 1 Permalink

    @008cff (View Post)

     In your TPT data directory (you can get there via the simulation options menu).

  • 008cff
    21st February Member 0 Permalink

    @Jerehmia (View Post)

     ik but theres no UndoHistoryLimit in it, do i use a var like local UndoHistoryLimit = 10 or other?

  • Jakav
    21st February Member 1 Permalink

    Yes, you would just set that to a bigger number. Be forewarned, however, a high number will cause your computer to be very laggy due to all the memory that will be used to store all the data for the undos.

  • 008cff
    23rd February Member 0 Permalink

    @Jakav (View Post)

     i tried that but both local UndoHistoryLimit = 10, and "UndoHistoryLimit" : 10, doesn't work, even erased my favourites section had to copy the backup powderpref thing to restore it, also it gets erased automatically when i load powder toy app