Jump to content
renderfan

Preview Window with Python

Recommended Posts

Hello!

With right button over node i can use Preview Window just for this node. Is it possible to make same in Python?

I found hou.FloatingPanel and hou.PaneTab and then set to SceneViewer. But how can I make it to show only geometry from specific node?

Thank you!

Share this post


Link to post
Share on other sites

Call hou.PaneTab.setPin(True) so that it doesn't follow selections.

Share this post


Link to post
Share on other sites

Sorry for opening an old thread.

But is there any way in python to modify the Scene Viewer UI. If I create a floating window just to visualize geometry I want to have Hide Other Objects enable (is disable by default), the pane tabs and network controls hidden and finally I want to change the display mode to Headlight Only.

Is it possible to do this changes in python?

Thanks

Share this post


Link to post
Share on other sites

Mmmm I have spotted another issue.

If you open a floating pane to view a certain node, so an scene viewer and then do setCurrentNode(myViewNode).

But actually the display flag is in a different node, the new floating pane will always show the geometry in the display flag, so it is actually showing the geometry in the network set by node with the display flag.

Not the geometry specify on the node specified when using setCurrentNode().

So it is not possible to replicate the Preview Window command using python I am afraid.

Cheers.

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

×