Closed ljp-cyber closed 10 months ago
def step_backward(): app = ps.Application() doc = app.activeDocument current_state = doc.ActiveHistoryState history_states = doc.HistoryStates cur_index = history_states.index(current_state) rollback_index = history_states.index(current_state) - 1 if rollback_index >= 0: rollback_state = history_states[rollback_index] doc.ActiveHistoryState = rollback_state print("success") else: print("fail")
The above code cannot be successfully rolled back.
Thanks!
I deployed a new version and the issue has been solved
The above code cannot be successfully rolled back.
Thanks!