PDA

View Full Version : Global Bone Origins



Ambival
04-18-2008, 08:25 PM
Is there some way to see, at a given point, the GLOBAL location of a bone's origin. They seem to be stored as a relative offset of the transformed parent's origin (in connected bones, facing down the local Z axis). Setting the coordinate system in the UI to Global didn't seem to change anything there. I'm trying to validate some algorithm and really need to find these numbers. Can anyone help?

Thanks,
Roger :help:

evenflcw
04-19-2008, 08:08 AM
There is no real support for it in the ui. But you can get at it via expression, lscript or sdk.

Apply the expression [item name].wpos(Time).[channel] to whatever channel of another object and just watch the numerics. It would be best if you applied this expression via the LW_Expression motion modifier as it has the After IK flag which will force it to evaluate as late as possible (hopefully after your algorithm has executed already). Applying it to a new item is ususally the best as LW will tend to evaluate each items expression/plugins in the order the items where created.

Through lscript/sdk you could also create a custom object/gizmo or other which would show the information in the viewport and or panel.

Ambival
04-19-2008, 08:04 PM
Thanks very much for the advice. I hadn't considered using expressions!

Roger