Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® FBX® / FBX Plug-ins Import-Export Discussions / Getting the Camera switching animation
  RSS 2.0 ATOM  

Getting the Camera switching animation
Rate this thread
 
56853
 
Permlink of this thread  
avatar
  • Watt
  • Posted: 13 June 2011 05:54 AM
  • Total Posts: 10
  • Joined: 31 March 2011 12:24 PM

Hi, we figured out how to get a Camera Switcher to export from 3DSMAX ( for some reason using a script didn’t work ). My question is how do we then get the curve that stores the indices of the cameras against the time at which to switch ? Somewhere I have to do something like

GetCurve<KFbxAnimCurve>(pAnimLayer, KFCURVENODE_CAMERA_INDEX)

but which channel and which node do I call this on ?



Replies: 0
avatar
  • CarlosC
  • Posted: 11 October 2011 03:40 AM

Hello Watt!

I sent your question to our principal FBX dev and his first question was “How did he do it?” :)

It seems that there is not explicit code in our FBX plug-in to export the camera switcher.  The only example he can give, based on our FBXSDK 2012.x code is the following:

FbxNode* lCameraSwitcherNode = pScene.GlobalCameraSettings().GetCameraSwitcher()->GetNode();
FbxCameraSwitcher* lCameraSwitcher = lCameraSwitcherNode->GetCameraSwitcher();
FbxAnimCurveNode* lAnimCurveNode = lCameraSwitcher->CameraIndex.GetCurveNode(pAnimLayer);
if (lAnimCurveNode)
{
int lCameraIndex = lAnimCurveNode->GetChannelValue<int>(0U, 0);
. . .

Let us know if this helped.

Cheers!
Carlos



Replies: 0