Jump to content
gemini

Hide The Ortho Grid in Python

Recommended Posts

Hi Everyone,

Can the the ortho grid be hidden in python ( I sure it can be ;) ) ? ( Not the reference Plane ! )

Thanks in advance !

G

Edited by gemini

Share this post


Link to post
Share on other sites

Hi Szabolcs,

I am using this script:

for pane in hou.ui.curDesktop().paneTabs() :
    if pane.type() == hou.paneTabType.SceneViewer :
        settings = pane.curViewport().settings()
        settings.setDisplayOrthoGrid(not settings.displayOrthoGrid())

 

Unfortunately, this change is not immediately reflected in the Perspective viewport. I sent RFE (quoted below), and SideFX logged this in their database; Bug (ID# 100052)

Please, if I use this script to toggle the grid in the perspective view,
then the change is not reflected immediately. I have to switch to Ortho view 
and back to Perspective to see the grid updated (toggled on/off)

 

If the same issue happens to you, please RFE it too and mention the Bug ID#

I am using version 18.0.353

Edited by ikoon

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

×