Controlling object selection and handles from python sop?

   359   0   1
User Avatar
Member
82 posts
Joined: 4月 2020
Online
Hello All,

Is it possible to control the selection of objects or geometries from a python sop, and then also turn on handle mode for the user to be able to manipulate the geometry? This is for a UI that helps guide a user who doesn't really know Houdini through a semi-automated set of tasks. Currently, I'm having trouble understanding if this is even possible, much less actually getting it to work. Does anyone have any experience doing this sort of thing? Any advice or suggestions?

From the hou.SceneViewer class I see the following promising method for selecting geometries, but I haven't been able to put together a set of parameters that actually works, and the web site says it has not yet been documented. I also haven't found useful examples in my searches.



For turning on handle mode, maybe it is possible to generate a sequence of key/mouse presses that could accomplish this? But I'm not seeing how to generate the events, and maybe I would have to understand the x,y coordinates in the ui of the handle mode toggle? That would change if the window is resized, though.

Any suggestions would be welcome, thanks!

Best wishes,
Mary

Attachments:
SceneViewer.png (22.1 KB)

  • Quick Links