Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Open Reality / FBStoryClip Constructor
  RSS 2.0 ATOM  

FBStoryClip Constructor
Rate this thread
 
39941
 
Permlink of this thread   Subscribe to this thread
avatar
  • pmsimard
  • Posted: 19 February 2010 09:29 AM
  • Location: Montreal
  • Total Posts: 34
  • Joined: 27 August 2006 02:28 PM

Hi,

I’m trying to get this working but it seems like the FBStoryClip constructor is not working…

FBStory fbStory;
FBStoryTrackType fbSTType FBStoryTrackType(kFBStoryTrackCharacter)

char ccSceneName[MAX_PATH]
;
sprintf(ccSceneName"%s"strSceneName.c_str())

//Create a StoryTrack and Put the animation in it
FBPropertyStoryFolder pStory fbStory.RootFolder;

FBStoryTrack pTrack FBStoryTrack(fbSTTypepStory)
pTrack
.Label "Animation";
pTrack.CharacterIndex 0;

FBTime pTime FBTime(0,0,0,0,0)

FBStoryClip pClip 
FBStoryClip(ccSceneNamepTrackpTime)

When building everything else is fine but I get this error:

error C2665: ‘ORSDK90::FBStoryClip::FBStoryClip’ : none of the 3 overloads could convert all the argument types
error C2512: ‘ORSDK90::FBStoryClip’ : no appropriate default constructor available

When I go to the definition it seems fine. I see the 2 constructors but fail to actually use it.
Anyone know what to do with this?

Thanks



Replies: 0
avatar

HFBStoryTrack pTrack = new FBStoryTrack(FBStoryTrackType::kFBStoryTrackCharacter)
      
char ccSceneName[256] 
"C:\\Program Files\\Autodesk\\MotionBuilder 2010\\Templates\\tutorials\\mia_story.fbx";

FBTime pTime FBTime(0,0,0,0,0)
HFBStoryClip pClip 
= new FBStoryClip(ccSceneNamepTrackpTime)

~Kristine



KRISTINE MIDDLEMISS | DEVELOPER CONSULTANT
AUTODESK Media & Entertainment

Replies: 0




   
  Settings Choose Theme color: