Douglas Teixeira de Abreu Posted January 9, 2018 Share Posted January 9, 2018 Hello Everyone. How do I create a button for the undo command? Using a Python Script and hou.undos.performUndo() Note: On Python Source Editor the code work, but on Script Shelf not. error msg <Cannot undo within an undo group> How use hou.UndosGroup https://www.sidefx.com/docs/houdini/hom/hou/undos.html VideoCase https://drive.google.com/file/d/1-m38aiA50QPuSs75Pe9kiVOs7nMbg3XY/view Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted January 10, 2018 Share Posted January 10, 2018 import hdefereval hdefereval.executeDeferred(hou.undos.performUndo) 2 Quote Link to comment Share on other sites More sharing options...
Douglas Teixeira de Abreu Posted January 10, 2018 Author Share Posted January 10, 2018 (edited) 8 hours ago, Alexey Vanzhula said: import hdefereval hdefereval.executeDeferred(hou.undos.performUndo) Hello Friend. This works, the solution is accurate.We are grateful to bring us this gift! Edited January 10, 2018 by Douglas Teixeira de Abreu 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.