Jump to content

display msg at the bottom


newbee

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")
x=hou.selectedNodes()

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

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