Jump to content


[help] how to set where python "print" to?


  • Please log in to reply
2 replies to this topic

#1 oat

oat

    Peon

  • Members
  • Pip
  • 11 posts
  • Joined: 24-December 09
  • Name:John Smith

Posted 29 May 2012 - 07:54 AM

(sorry for cross posting as I didn't get any advice in Houdini forum)

the print command in my python script in a DA may print to Houdini console on one computer and to the Python Shell Panel on another computer...

Can we set where the python "print" may print to?

Thanks!

- Ji

#2 mantragora

mantragora

    Initiate

  • Members
  • PipPip
  • 225 posts
  • Joined: 08-December 11
  • Location:frozen hell
  • Name:to be, or not to be, TD ?

Posted 29 May 2012 - 10:08 AM

If you set this
HOUDINI_WINDOW_CONSOLE = 1

variable in your
houdini.env

file that you can find in your $HOME directory, it will force Houdini to open floating window for output.

EDIT: Hm, it looks that it doesn't force it for Python.

Edited by mantragora, 29 May 2012 - 10:18 AM.

magic happens here... sometimes

Vimeo
Twitter

#3 oat

oat

    Peon

  • Members
  • Pip
  • 11 posts
  • Joined: 24-December 09
  • Name:John Smith

Posted 30 May 2012 - 05:04 AM

(seems my previous reply disappeared...)

Hi, mantragora, thanks a lot!

I found that the output of Print will be directed to the Houdini console if the Python panel is minimized ...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users