1 #ifndef __FBPAPPLICATION_H__
2 #define __FBPAPPLICATION_H__
48 #define FBSDK_DLL K_DLLIMPORT
54 #ifdef FBSDKUseNamespace
138 #if !defined(K_NO_CHARACTER)
205 #if !defined(K_NO_AUDIO)
231 #if !defined(K_NO_CHARACTER)
234 #if !defined(K_NO_ACTOR)
237 #if !defined(K_NO_CHARACTER)
240 #if !defined(K_NO_ACTOR)
253 #if !defined(K_NO_ONECLICK)
295 bool Minimize(
bool pBlocking=
true);
303 void UpdateAllWidgets();
309 void FlushEventQueue();
316 bool FileNew(
bool pAskUser =
false,
bool pClearSceneName =
true);
326 bool FileOpen(
const char* pFilename,
bool pShowUIMsg =
false,
FBFbxOptions* pOptions =
NULL );
334 bool FileOpen(
void* pBuffer, kULong pBufferLength );
344 bool GetMaxFrameCount(
void* pBuffer, kULong pBufferLength, kLong* pFrameCount,
int pTimeScale);
356 bool FileMerge(
const char* pFilename,
bool pShowUIMsg =
false,
FBFbxOptions* pOptions =
NULL );
382 bool FileAppend(
const char* pFilename,
bool pShowUIMsg =
false,
FBFbxOptions* pOptions =
NULL );
396 void FileExit(
bool pSave =
false );
413 bool FileImport(
FBString pFilename,
bool pMatchModels =
false,
bool pCreateUnmatchedModels =
true );
436 bool FileExport(
FBString pFilename );
467 #if !defined(K_NO_CHARACTER)
491 bool IsValidBatchFile(
const char* pFilename );
493 #if !defined(K_NO_ONECLICK)
503 bool OneClickUpdateCurrentScene();
508 bool OneClickAddToCurrentScene();
512 void OneClickSelectPreviouslySentObject();
529 #if !defined(K_NO_AUDIO)
543 bool ExecuteScript(
FBString pFilename);
553 #if !defined(K_NO_ACTOR)
556 #if !defined(K_NO_CHARACTER)
566 const char* GetSceneTitle();
571 void SetSceneTitle(
const char* pTitle);
575 const char* GetSceneSubject();
580 void SetSceneSubject(
const char* pSubject);
584 const char* GetSceneAuthor();
589 void SetSceneAuthor(
const char* pAuthor);
593 const char* GetSceneKeywords();
598 void SetSceneKeywords(
const char* pKeywords);
602 const char* GetSceneRevisionNumber();
607 void SetSceneRevisionNumber(
const char* pRevNumber);
611 const char* GetSceneComment();
616 void SetSceneComment(
const char* pComment);
699 #ifdef FBSDKUseNamespace
FBPropertyEvent OnFileNewCompleted
Event: A File New has been completed.
FBBatchOnContainsBatchTakes
Different actions to perform when a scene already contains batch takes while in a batch process...
FBAudioBitDepthMode BitDepthMode
Property: Bit depth for one sample of audio.
class FBArrayTemplate< FBModel * > FBModelList
typedef class FBSDK_DLL FBArrayTemplate FBModelList;
FBBatchOnTakeExist
Different actions to perform when a take already exist while in a batch process.
#define __FBClassDeclare(Name, Parent)
For internal use only.
FBBatchFileFormat mInputFileFormat
File format of the input files.
File format for FBX (animation only).
FBRotationFilter mRotationFilterToApply
The rotation filter to apply.
bool FBMergeTransactionIsOn()
Call to tell if system is during Merge transaction.
#define FB_DEFINE_COMPONENT(DllTag, Type)
Define a component and give it the ability to be a property.
Save only the batch takes.
bool mStartAnimationAtZero
Set the time of all loaded files to 0.
Option parameters for the batch process.
FBOneClickApplication
Possible application for One-Click interop with MotionBuilder.
bool mOverwriteScaling
Set the scaling to a default setting of 1.0.
FBAudioChannelMode ChannelMode
Property: Audio render channel number, 1 for Mono(left channel right channel render mixed to one chan...
Creates custom cameras and manages system cameras.
FBTimeSpan TimeSpan
Property: Start and stop selection time to render.
Customize file loading and saving.
bool mFrameAnimation
Set timeline start and end time to corespond with the start and end of animation. ...
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
FBCharacter * mCharacter
The character to receive the animation.
FBString mInputDirectory
The directory containning the input files.
bool mPlotToCharacter
To plot the animation on the character.
class FBPropertyBaseComponent< FBActor * > FBPropertyActor
FBBatchProcessType mProcessType
What process should be done? Load, Save or Both.
FBPlotTangentMode mPlotTangentMode
The tangent mode for plotted curve.
Property class: const char * (String).
Audio Render Options structure.
#define FB_DEFINE_ENUM(DllTag, Type)
Define an enum and give it the ability to be a property.
MotionBuilder SDK base class.
FBBatchOnTakeExist mOnTakeExistAction
Action to perform when a take already exist while in a batch process.
FBPropertyEvent OnFileOpenCompleted
Event: A File Open has been completed.
FBBatchStatus
Different return values of the Batch process.
FBPropertyString FBXFileName
Read Write Property: Current scene filename.
bool mUseBatchSuffix
Add a batch suffix to the name of the files.
FBPropertyEvent OnFileMerge
Event: A File Merge has been requested, nothing has been loaded yet.
FBBatchFileFormat mOutputFileFormat
File format of the output files.
FBString OutputFileName
Property: Audio Render destination file.
void FBPreventUIUpdateBegin()
Call to prevent UI updates when creating/deleting/renaming objects.
#define K_DEPRECATED_2016
Option parameters for plotting.
bool FBMergeTransactionFileRefEditIsOn()
Call to tell if system is during File Reference Edit Merge transaction.
A take is a container for animation in a scene.
#define __FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
File format for Motion Analysis TRC.
FBPlotTangentMode
The tangent mode for plotted curve.
FBAudioChannelMode
Enum FBAudioChannelMode.
FBAudioRateMode RateMode
Property: Rate mode for number of samples per second.
FBPropertyEvent OnFileSaveCompleted
Event: A File Save has been completed.
bool mPlotOnFrame
Should we plot on frame?
FBString mOutputDirectory
The directory containning the output files.
bool mUseSingleTake
Use only one take to convert all files.
A character is the link between a motion source and a character model.
#define FBSDKNamespace
FBSDKNamespace define.
FBTime mPlotPeriod
The plot period (1/fps).
bool FBPreventUIUpdateIsOn()
Call to tell if UI updates are blocked.
PropertyEvent: Base event class.
void FBMergeTransactionFileRefEditEnd()
Call to end merge transaction with File Reference edit.
Customize motion file loading.
bool mWriteRate
Write frame rate in Acclaim AMC files.
FBPropertyActor CurrentActor
Read Write Property: Indicate the current actor, as used by the character tool.
FBPropertyEvent OnFileNew
Event: A File New has been requested, nothing has been destroyed yet.
bool mWriteTranslation
Write translation animation data included with Acclaim AMC files.
File format for Motion Analysis HTR.
FBBatchFileFormat
Different file formats for the batch.
FBActor is used to link motion data to a character.
FBAudioRateMode
Enum FBAudioRateMode.
#define FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
FBBatchProcessType
Different process type for the batch.
File format for Vicon C3D.
FBBatchOnContainsBatchTakes mOnContainsBatchTakesAction
Action to perform when a scene already contains batch takes while in a batch process.
FBPropertyEvent OnFileSave
Event: A File Save has been requested, nothing has been saved yet.
bool mConstantKeyReducerKeepOneKey
Should the constant key reducer keep at least one key?
bool mPlotTranslationOnRootOnly
Should we plot the translation on root only?
void FBMergeTransactionFileRefEditBegin()
Call to begin the transaction for merging multiple files and applying File Reference edit at the same...
Save the takes in different files.
bool mPlotLockedProperties
Should we plot locked properties?
bool mPreciseTimeDiscontinuities
Should we use precise time discontinuities?
bool mKeepCharacterConstraint
To keep the character constaint when saving.
void FBPreventUIUpdateEnd()
Call to end blocking the UI updates.
class FBPropertyBaseComponent< FBCharacter * > FBPropertyCharacter
FBPropertyEvent OnFileExit
Event: A File Exit as been requested, nothing has been destroyed yet.
File format for Acclaim AMC.
bool mPlotAllTakes
Should we plot all takes?
FBViewerMode
Different viewer modes for the 3D viewer.
FBApplication is used mainly to manage files.
Load the files and plot the character with every take.
FBPropertyCharacter CurrentCharacter
Read Write Property: Indicate the current character, as used by the character tool.
bool mPlotToControlSet
To plot the animation on the control set.
File format for Biovision BVH.
FBRotationFilter
Rotation filters.
void FBMergeTransactionBegin()
Call to begin the transaction for merging multiple files.
Video Grabbing Options structure.
bool mUseConstantKeyReducer
Should we use a constant key reducer with the filter?
bool mKeepDummyBones
To keep dummy bones.
void FBMergeTransactionEnd()
Call to end the merge transaction.
FBPropertyEvent OnFileOpen
Event: A File Open has been requested, nothing has been loaded yet.
FBString mSkeletonFile
The Skeleton file (for Acclaim AMC files).
FBAudioBitDepthMode
Enum FBAudioBitDepthMode.