Set display options with Python

   2279   2   1
User Avatar
Member
17 posts
Joined: April 2011
Offline
Is there any way to set display options (in the scene view) using Python? I couldn't find it in the docs.

I want to script a new attribute vector visualization in the scene view (easy not in a script).
Windows 7 64-bit, GeForce GTX 260, 12 GB RAM
User Avatar
Member
51 posts
Joined: Oct. 2006
Offline
hscript commands are available from Python, so this can be done with something like the following:
hou.hscript(“viewoptadd vector tu; viewoptset tu attrib(tangentu); viewoptenable * all +tu”)
User Avatar
Member
17 posts
Joined: April 2011
Offline
works perfectly, thanks!
Windows 7 64-bit, GeForce GTX 260, 12 GB RAM
  • Quick Links