houdini env batch mode

   2576   1   1
User Avatar
Member
7 posts
Joined: July 2011
Offline
Hello everyone,

Anyone know if a houdini env exist to know if houdini is running in batch mode or not?

thanks a lot.

mathieu
User Avatar
Staff
4159 posts
Joined: Sept. 2007
Online
Either of these should work; if you're running hbatch or hython, they should print ‘hbatch’.

Python:
print hou.applicationName()

Hscript:
python -c "print hou.applicationName()"

You could set an env in your 123.cmd/456.cmd using one of the above commands.
I'm o.d.d.
  • Quick Links