Jump to content
Sign in to follow this  
newbee

display msg at the bottom

Recommended Posts

what is the class i need to use to display the msg at the bottom

while prompting the user to do something before the program runs

 

Screen Shot 2017-11-13 at 1.17.53 AM.png

Share this post


Link to post
Share on other sites

thanks bonsak,

i want to give a msg to the user to select a node.

once selected i want to store the resulting node in a variable.

how do i do this?

 

 

import toolutils
scene_viewer = toolutils.sceneViewer()
positions = scene_viewer.selectPositions(prompt="select a node")
x=hou.selectedNodes()

Share this post


Link to post
Share on other sites

Check out the hou docks for the hou.SceneViewer class: http://www.sidefx.com/docs/houdini/hom/hou/SceneViewer.html
You can do like this to ask the user to select an object:

scene_viewer = toolutils.sceneViewer()
nodes = scene_viewer.selectObjects( prompt='Select objects', sel_index=0, allow_drag=False, quick_select=False, use_existing_selection=True, allow_multisel=True, allowed_types=('*',), icon=None, label=None, prior_selection_paths=[], prior_selection_ids=[], prior_selections=[])

-b

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
Sign in to follow this  

×