Community
FBX Forum
Welcome to Autodesk’s FBX Forums. Share your knowledge, ask questions, and explore popular FBX topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Extracting camera animation from cameras under multiple NULL nodes

0 REPLIES 0
Reply
Message 1 of 1
alantech1
296 Views, 0 Replies

Extracting camera animation from cameras under multiple NULL nodes

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

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report