Jump to content

Preview Window with Python


renderfan

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!

Link to comment
Share on other sites

  • 2 years later...

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

Link to comment
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.

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...