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 SDK / GetCurrentTakeNode deprecated, new equivalent?
  RSS 2.0 ATOM  

GetCurrentTakeNode deprecated, new equivalent?
Rate this thread
 
62895
 
Permlink of this thread  
avatar
  • jacobholm
  • Posted: 16 December 2011 11:43 AM
  • Total Posts: 2
  • Joined: 16 December 2011 11:33 AM

I am going through some old tutorials on importing fbx files using the sdk. The sdk has been updated alot since then and almost everything is deprecated. I was wondering how I would achieve the same thing as this code:

float
          fIntensity 
= (float)pFbxLight->Intensity;
        
KFbxColor
          lightColor
;
        
ligthColor.mRed pNode->GetCurrentTakeNode()->GetColorR()->Evaluate(0) * fIntensity;


Replies: 1
/userdata/avatar/vx3501hqr_small.jpg

HI jacob, go through new SDK’s help and samples would be helpful.
For animation, please refer to ImportScene and ViewScene.
Basically, if you are using newest SDK and want to get animation on certain property, you need to tell FBX SDK on which animstack, which animlayer you want to get it from, sth like this:
lFCurve = pNode->GetColorR()->GetCurve<KFbxAnimCurve>(animLayer);
lFCurve->Evaluate(pTime);

Author: Jiayang Xu

Replied: 18 December 2011 09:14 PM  
avatar
  • jacobholm
  • Posted: 19 December 2011 05:25 PM

Ok, thanks. I guess you’re right about going thoroughly through the help and examples hehe, it is a somewhat complex format.



Replies: 0