how to clear console using python

   11225   5   1
User Avatar
Member
224 posts
Joined: June 2009
Offline
Is there a python command for clearing the Houdini Console?
Patrick
User Avatar
Member
169 posts
Joined: April 2014
Offline
Bump!
Winter is coming!
User Avatar
Member
181 posts
Joined: Feb. 2013
Offline
Not really in the Python shell (yet [sidefx.com]), but in the Textport you can use the word ‘clear’. Probably alias it to any shortcut you'd like, too.
User Avatar
Member
169 posts
Joined: April 2014
Offline
Chronon
Not really in the Python shell (yet [sidefx.com]), but in the Textport you can use the word ‘clear’. Probably alias it to any shortcut you'd like, too.

Then is there any way to direct output to the console instead of the python shell? Things like print statements…
Winter is coming!
User Avatar
Member
14 posts
Joined: Oct. 2015
Offline
I use these two lines to clear the console

print ‘\n’ * 5000
print(“console cleared”)

works well for me. just put these in a new tool on a shelf.

cheers,
amit
User Avatar
Member
615 posts
Joined: Aug. 2008
Offline
we do the same, just print a lot of empty lines even manually when testing ideas.
  • Quick Links