Jump to content

How do I create a button for the undo command?


Recommended Posts

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

Link to comment
Share on other sites

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 by Douglas Teixeira de Abreu
  • Like 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...