Viewer state handles

   1131   2   0
User Avatar
Member
9 posts
Joined: 4月 2018
Offline
I have a dynamic handle bound to a viewer state in an HDA and im wondering if there is anyway to change the position of the handle from python. I would like it to spawn at a different location than the origo but i havnt found a good way to access it. I have the handle as a reference but hou.Handle has no way of accessing the “tx”, “ty”, “tz” as far as I can see.

In the right click menu for the handle it is possible to change the pivot. The handle pivot is what im after but from python. Any ideas?

Attachments:
pivot.png (187.9 KB)

User Avatar
スタッフ
398 posts
Joined: 2月 2018
Offline
There is no HOM API to offset the handle pivot when the handle is detached from its mapped object. You can only place the handle pivot with the px/py/pz parms like it's done in the $HFS/houdini/viewer_states/examples/geo_deformer_demo.hip python state demo.
Edited by mabelzile - 2020年10月22日 10:26:38
User Avatar
Member
9 posts
Joined: 4月 2018
Offline
Thanks!
  • Quick Links