Jump to content
j00ey

Python - Setting visibility of cameras / lights in viewport

Recommended Posts

Posted (edited)

I'm trying to write a script to set some scene viewer display options for use in a specific desktop and I can't figure out how to switch off display of cameras and lights. I also want to switch off the ortho grid but I'm guessing once I've found the cameras and lights settings I'll find the other options too...

image.png.c27aec7cee5c07929b870939bb443eb9.png

 

I tried this but it's telling me my viewport isn't a scene graph view, I think it's perhaps a LOPs thing...

front_pane = hou.ui.paneTabOfType(hou.paneTabType.SceneViewer, 1)

front_pane.setShowLights(0)

 

I've also looked around here but no joy...

front_pane_view = front_pane.curViewport()

front_pane_settings = front_pane_view.settings()

 

Can anyone help? Many thanks in advance..

Edited by j00ey

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×