Hi.
I am trying to extract the accumulated rotation/location for a camera which has been animated with multiple nodes.
I have a group inside a group and then the cameras is inside that one
ie maya layout..
camera-top-group(NULL NODE)
camera-middle-group(NULL NODE)
camera(CAMERA)
each NULL node or group above the camera has its own animation (varying rotation/location).
it is possible in maya to constrain a locator to the camera and bake its animation keys out and then copy them onto another camera so it will animate in the exact same way as the camera which has many nodes above it controlling it.
I am trying to do this in code but the results I see seem to be a bit out.
I'm probably doing it wrong.
Does anybody know the correct way of doing this?
I have tried
GetNodeGlobalTransform
GetNodeLocalRotation/GetNodeLocalLocation
I tried adding up all the parent nodes transforms as well.
note: I think i dont need the pre/post rotation stuff
There must be something simple that I have completely missed!
Cheers.
AlanTech1