scp Posted December 23, 2010 Share Posted December 23, 2010 Just wondering if there is a way to bypass any load warnings when opening a scene with hbatch. When I run a hython command, if there are any errors the process will just exit without completing the task. Is there some kind of error check exception I could use to get round this, maybe with the hou.LoadWarning class but not quite sure how to use this. I've been racking my brains but not getting anywhere, any help would be appreciated. Thanks Simon Quote Link to comment Share on other sites More sharing options...
graham Posted December 24, 2010 Share Posted December 24, 2010 With hbatch you should be able to pass in the -w option to suppress load warnings. For hython, I think you can catch the exceptions and ignore them but I'm not 100% sure on that one. Quote Link to comment Share on other sites More sharing options...
JoshJ Posted December 25, 2010 Share Posted December 25, 2010 I'd really like to know this too, I was attempting to send some batch processes to a renderfarm (not renders, just batch submissions of geometry processing) using hython, and really had trouble with the load warnings. Quote Link to comment Share on other sites More sharing options...
symek Posted December 25, 2010 Share Posted December 25, 2010 Indeed this would be a good candidate for a RFE. Supposedly harmless load warning can ruin your day while processing on a farm with hython. Quote Link to comment Share on other sites More sharing options...
scp Posted January 11, 2011 Author Share Posted January 11, 2011 Thanks for the replies. They can indeed ruin ones day. Still not sure how or whether I can catch these exceptions from hython yet though. If anyone has any further ideas that would be great. Thanks, s Quote Link to comment Share on other sites More sharing options...
ch3 Posted July 17, 2014 Share Posted July 17, 2014 Has anyone got a solution for that? I am running into some problems as well. Quote Link to comment Share on other sites More sharing options...
ch3 Posted July 17, 2014 Share Posted July 17, 2014 in the docs it says: load(file_name, suppress_save_prompt=False, ignore_load_warnings=False) but I can't seem to run the function with any argument other than just the file_name. What would the correct syntax be?In the meantime I found this example code in the net which works for me. try: hou.hipFile.load(hipFile) except hou.LoadWarning: pass Quote Link to comment Share on other sites More sharing options...
rcampos Posted May 10, 2018 Share Posted May 10, 2018 Setting ignore_load_warnings=True did it for me! 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.