So far every time I've started to post a question on a problem I've been wrestling with I've subsequently come up with the answer, so I'm hoping that the same happens now...
Nertz.
I'll try to explain what I want to do. I've got a HUD with a several buttons. Some are designed to rez and attach an object in the HUDs contents to the avatar's right hand and some to it's left. They also play a specific animation. All of this works great.
My problem is that, depending upon the animation being played, the object needs to be in varying positions and rotations relative to the attachment point on the avatar. Clearly llGetLocalPos, llGetLocalRot, llSetPos and llSetLocalRot are what I'm looking for, but apparently I was absent the day/week/year/decade they covered this in geometry. I miss degrees.
I suppose I could have a variety of objects in the HUDs contents folder, each pre-adjusted to the appropriate position and rotation for that animation, and res and attach a different object for each animation, but that seems to lack elegance. I'd much rather have a script do it for me.
In theory I assume I'd want to get the position and rotation of the object when it attachs to the avatar, then modify them, and then set them (hopefully quickly enough that the avatar doesn't look too spastic).
The trouble is that in practice I have no earthly idea how to manage that. Is there a "LSL Rotation and Positioning for People who would have to attend years of intensive round the clock education in order to be called Dummies" sort of thing out there somewhere and if so can someone point me in that direction, preferably NOT using radians or euler math?
Thanks for any help.