Jump to content

Python - Setting visibility of cameras / lights in viewport


j00ey

Recommended Posts

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...