jerry7
jerry7
About Me
Connect
LOCATION
WEBSITE
Houdini Skills
Availability
Not Specified
Recent Forum Posts
how to customize the TAB menu July 25, 2026, 7:07 p.m.
They come from shelf tool or hda(include factory inner) and can be edited in type property or shelf 'edit tool' window.
How to edit Python panel with External editor? July 21, 2026, 9:21 p.m.
How to edit Python panel with External editor just as labs for shelf tool?
Thanks!
Thanks!
Undo group problem July 19, 2026, 7:41 p.m.
In the shelf tool, throwing an exception does not modify the scene. I want to implement this functionality in the Python panel.
This code works normally.
However, if an error occurs before modifying the scene, the current undo group is not recorded in the undo history. The undo executed in the except block will cancel the previous operation.
How to solve this problem?
Thanks!
This code works normally.
try: with hou.undos.group("my code"): hou.node('/obj/geo1').createNode('box') hou.node('/obj/geo1').createNode('box') raise hou.Error() except: hou.undos.performUndo()
However, if an error occurs before modifying the scene, the current undo group is not recorded in the undo history. The undo executed in the except block will cancel the previous operation.
try: with hou.undos.group("my code"): raise hou.Error() # raise exception before modifying scene , no undo is added to undo history. hou.node('/obj/geo1').createNode('box') hou.node('/obj/geo1').createNode('box') except: hou.undos.performUndo() # undo operation before my code
How to solve this problem?
Thanks!