Guest Swann Posted April 23, 2010 Share Posted April 23, 2010 (edited) Hi again, When I try to terminate my python tool before it executes it always pops up console with text like in attached picture. How to handle this ? Is there some special events functions for those type of situations ? Thanks in advance Edited April 23, 2010 by SWANN Quote Link to comment Share on other sites More sharing options...
graham Posted April 23, 2010 Share Posted April 23, 2010 Can you not just catch the exception? try: geo_selection = activepane.selectGeometry() except hou.OperationInterrupted: geo_selection = None if geo_selection is not None: finish tool Quote Link to comment Share on other sites More sharing options...
Guest Swann Posted April 23, 2010 Share Posted April 23, 2010 Weeee, Once again, thank you very much for help. 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.