1 #ifndef __FBMOTIONFILEOPTIONS_H__
2 #define __FBMOTIONFILEOPTIONS_H__
39 #include <kaydaradef.h>
44 #define FBSDK_DLL K_DLLIMPORT
49 #ifdef FBSDKUseNamespace
50 namespace FBSDKNamespace {
56 enum FBModelSelection {
60 kFBSelectedModelAndChildren,
61 kFBPrefixGroupContainingModel,
202 #ifdef FBSDKUseNamespace
MotionBuilder SDK base class.
Customize motion file loading.
void SetTakeSamplingRate(int pTakeIndex, FBTimeMode pTimeMode, double pCustomSamplingRate=30.0)
Set the sampling rate for a particular take.
FBTime GetTakeStart(int pTakeIndex)
Return the Take Start time.
FBPropertyBool CreateUnusedOpticalSegments
Read Write Property: If set to true, unused optical segments will be created. Used for trc,...
FBPropertyBool SetLimits
Read Write Property: If set to true, use motion limits. Used for asf/amc files.
FBPropertyBool KeepDummyNode
Read Write Property: If set to true, dummy bones from the file are not removed. Used for asf/amc file...
double GetTakeSamplingRate(int pTakeIndex)
Return the actual sampling rate as a double, useful when you have a custom sampling rate.
FBPropertyBool BaseTranslationOnRotationOffset
Read Write Property: If set to true, the base translation will be imported as Rotation Pivot offset....
FBPropertyBool SetOccludedToLastValidPosition
Read Write Property: If set to true, occluded segments will be set to their last valid position....
void SetTakeSamples(int pTakeIndex, int pSamplesCount)
Set the number of samples for a particular take.
FBPropertyUpAxis UpAxisUsedInFile
Read Write Property: Indicated the up axis used in the motion file. Only effective when loading c3d f...
void SetTakeStop(int pTakeIndex, FBTime pStopTime)
Set the Take Stop time.
FBPropertyTakeSpanOnLoad TakeStartEnd
Read Write Property: Indicates how the start/end value of the take will be modified.
bool GetTakeSelect(int pTakeIndex) const
Return true if the take will be loaded.
FBPropertyBool CreateOpticalSegments
Read Write Property: If set to true, optical segments will be created. Used for trc,...
FBPropertyBool CreateInsteadOfMerge
Read Write Property: If set to true, the motion will imported/models will be created in the scene,...
FBPropertyBool CreateUnmatchedModels
Read Write Property: If set to true, nodes will be created to match the hierarchical structure of the...
FBPropertyBool ImportDOF
Read Write Property: If set to true, the DOF value will be imported from the file.
const char * GetTakeName(int pTakeIndex) const
Get the take name.
void SetTakeSelect(int pTakeIndex, bool pSelect)
Indicate if the take will be loaded.
FBMotionFileOptions(FBStringList *pStringList, HIObject pObject=NULL)
Constructor.
FBPropertyBool KeepActorPrefix
Read Write Property: If set to true, the Actor prefix will be kept when naming each optical marker....
void SetTakeStart(int pTakeIndex, FBTime pStartTime)
Set the Take Start time.
FBPropertyModelSelection ModelSelection
Common settings when merging, unused with the CreateInsteadOfMerge property is set to true.
FBPropertyBool IgnoreModelType
Read Write Property: If set to true, model type will not be considered when finding a matching model ...
FBPropertyBool ImportScaling
Read Write Property: If set to true, scaling values will be imported.
FBPropertyBool BaseRotationOnPreRotation
Read Write Property: If set to true, the base rotation will be imported as Pre Rotation....
void SetTakeName(int pTakeIndex, const char *pName)
Set the take name.
int GetTakeSamples(int pTakeIndex)
Return the number of samples.
FBTime GetTakeStop(int pTakeIndex)
Return the Take Stop time.
FBPropertyBool CreateReferenceNode
Settings based on file type.
FBTimeMode GetTakeSamplingRateMode(int pTakeIndex)
Return the sampling rate mode.
int GetTakeCount() const
Return the take count in the file to be loaded.
#define __FBClassDeclare(Name, Parent)
For internal use only.
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
class K_DLLIMPORT FBPropertyBase< bool, kFBPT_bool > FBPropertyBool
Property: bool
#define FB_DEFINE_ENUM(DllTag, Type)
Define an enum and give it the ability to be a property.
FBTimeMode
Different time modes available.
#define __FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.