Jump to content
Sign in to follow this  

display msg at the bottom

Recommended Posts

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")

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=[])


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