|
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 ?
|
|
|
|
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
|
|
|