Proper use of the Peak Handle

   1201   3   0
User Avatar
Member
182 posts
Joined: April 2009
Offline
Has anyone successfully used the peak handle in an HDA (without a peak SOP inside)?

I have set ownerop() to a wrangle inside the asset, but it looks like it only works with an actual peak sop as the owner.
Is there any more information about the ownerop() and owneropgroup() workflow or am I missing something?
It also changes position if I exit and re-enter the handle state.

There is no mention in the docs and I only found this little snippet in the HDK code:
// Some functions for getting and setting our owner operator information.
// The owner operator is the operator that defines what space our handles
// should appear in and what SOP/group field we should be interested in.

So now I'm pretty much stuck.

I have some hacky workarounds in the back of my head, but I'd rather use it properly.
Would python viewer states be an option for this ?

Attachments:
peak_handle_debug.hip (141.7 KB)

User Avatar
Staff
401 posts
Joined: Feb. 2018
Offline
Here's your scene with a python state for handling peak in case you need one.

Image Not Found

Attachments:
peak_handle_debug_w_pystate.hip (154.5 KB)

User Avatar
Member
182 posts
Joined: April 2009
Offline
Thank you for the quick reply and the example!

Unfortunately the python state also does not attach to the geometry.
How do I modify the position and orientation of the peak handle so it's attached to point 0 like the Peak SOP does?
User Avatar
Staff
401 posts
Joined: Feb. 2018
Offline
You can do it by setting the handle parms like in the attached scene.
Image Not Found
Edited by mabelzile - May 5, 2020 10:25:27

Attachments:
peak_handle_debug_w_pystate.hip (156.3 KB)

  • Quick Links