Atom Posted September 24, 2015 Share Posted September 24, 2015 (edited) Hi All, How do I control when the console appears and when it does not on Windows 7? It seems like when I don't need it it is always popping up yet when I want to view some printf() statements I can't figure out how recover the console? In Blender you can simply add '-console' after the .EXE and it will always popup the console window. Blender also has a nice menu feature which allows you to "toggle" the console on and off. I wish Houdini had this feature. I am stuck not being able to code this morning because I can't see my debug results. And what is strange is that yesterday the console was there just fine. Yes, I have 'HOUDINI_WINDOW_CONSOLE = 1' in my houdini.env and it does not work. Setting the environment variable does not cause the console to appear when I launch Houdini 14.396. Edited September 25, 2015 by Atom Quote Link to comment Share on other sites More sharing options...
Guest tar Posted September 24, 2015 Share Posted September 24, 2015 Why doesn't minimising the console work? When it pops up at an unwanted time, minimise it, then un-min it when you need it. Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted September 24, 2015 Share Posted September 24, 2015 Add new shelf tool and put inside it: print("") Make sure that Python Shell window is not visible and run the tool. Quote Link to comment Share on other sites More sharing options...
Atom Posted September 25, 2015 Author Share Posted September 25, 2015 @Marty: I generally try to minimize the console when I don't need it but sometimes I mistakenly click the RED X and close it instead. Thanks, fantastique, issuing a print does work. Quote Link to comment Share on other sites More sharing options...
edward Posted September 27, 2015 Share Posted September 27, 2015 If you close it, then the next print statement should cause it to come up again. So you shouldn't need to worry that your print statements are not showing up. Quote Link to comment Share on other sites More sharing options...
Jason Posted September 27, 2015 Share Posted September 27, 2015 If you want the console to appear from Mantra output (if you're not redirecting it to the node) then you need to use special keywords in the mantra command line, depending on your desired behaviour: mantra -o consolenowait mantra -o consolewait 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.