Jump to content

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×