I'm talking about this kind of handle. For example, if I have an xform details attribute stored, is it possible to align the handle with it? Or how about when it's a packed primitive and I have an intrinsic:transform?
And with Edit SOP, it automatically aligns with the orientation of the selected components. But how could I align it with another unselected component? For example what if I want to transform point 5 but I want the handle to be aligned with point 4's orientation?
Assuming you're familiar with Python tool states, you can set the handle parms "rprex", "rprey", "rprez" to the desired starting orientation you want to use (as Euler angles in degrees). You would need to define those angles yourself. For example, from the primitive intrinsic, you could extract the Euler angles from the transform matrix and then feed those values to the above attributes.
I'm not sure if there's a more straightforward way to do this in an HDA without relying on Python states.
toadstorm Assuming you're familiar with Python tool states, you can set the handle parms "rprex", "rprey", "rprez" to the desired starting orientation you want to use (as Euler angles in degrees). You would need to define those angles yourself. For example, from the primitive intrinsic, you could extract the Euler angles from the transform matrix and then feed those values to the above attributes.
I'm not sure if there's a more straightforward way to do this in an HDA without relying on Python states.
I'm not familiar with Python states but I'm willing to learn.
However I'm not trying to make a new HDA or something... I just want to change the handle during using Edit SOP and Transform SOP. To make my own custom version of Edit SOP seems to be crazy amount of work.
Adjusting pivots in this way takes a little getting used to. You first need to hit the ' (apostrophe) key to detach the handle. Once you're in detached mode, you can hit ; to enter orientation picking mode. This will allow you to click a geometry component like a prim, point or edge to act as the new pivot. Once you pick a pivot, hit ' again to re-attach the handle and you're good to go.
toadstorm Ah, okay, I misread what you were saying earlier.
Adjusting pivots in this way takes a little getting used to. You first need to hit the ' (apostrophe) key to detach the handle. Once you're in detached mode, you can hit ; to enter orientation picking mode. This will allow you to click a geometry component like a prim, point or edge to act as the new pivot. Once you pick a pivot, hit ' again to re-attach the handle and you're good to go.
Thank you for the answer!
I got how to manually align the handle to a face now, but I still wonder if there a way to procedurally set it (e.g. align it to form attribute). I thought the `pre-transform` is for this, but I can't get it to work so maybe it's just my imagination...