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® MotionBuilder® / Open Reality / FBFolder = Solved
  RSS 2.0 ATOM  

FBFolder = Solved
Rate this thread
 
24412
 
Permlink of this thread  
avatar
  • Avalon
  • Posted: 21 March 2009 08:11 AM
  • Location: Uppsala, Sweden
  • Total Posts: 50
  • Joined: 22 August 2006 02:48 AM

Hi, as I’m fairly new to all this I can’t seem to get my head around creating folders in the SDK. I’ve scanned through all the samples but without any luck.
Help gives me:
FBFolder (char *pName, HFBComponent pComponent, HIObject pObject=NULL)

and since I want to add a constraint folder I get:

FBConstraintManager        lCM;
    
FBSystem                mSystem;
    
HFBConstraint            lConstraint;
        
FBFolder                               lFolder;

    
lConstraint lCM.TypeCreateConstraint(9);
    
lConstraint->Name "Temp";
    
mSystem.Scene->Constraints.Add(lConstraint);

    
lFolder =  FBFolder("FolderName"lConstraint); <<<---- Missing something hereno default constructor?!?!!?

Any help pointing me in the right direction is greatly appreciated!

Cheers,
Chris



Choose a job you love, and you will never have to work a day in your life.

Replies: 0
avatar
  • Avalon
  • Posted: 21 March 2009 12:39 PM

Hi, figured it out myself.
For anyone else interested:

HFBFolder        lFolder;
....
lFolder = new FBFolder("Test"lConstraintNULL);

Cheers,
AV



Choose a job you love, and you will never have to work a day in your life.

Replies: 0