1 #ifndef __FBFBXOPTIONS_H__ 2 #define __FBFBXOPTIONS_H__ 47 #include <kaydaradef.h> 52 #define FBSDK_DLL K_DLLIMPORT 57 #ifdef FBSDKUseNamespace 66 enum FBElementAction {
67 kFBElementActionSave ,
68 kFBElementActionAppend ,
69 kFBElementActionMerge ,
70 kFBElementActionDiscard,
76 enum FBTakeSpanOnLoad {
85 enum FBCharacterLoadAnimationMethod {
86 kFBCharacterLoadConnect ,
87 kFBCharacterLoadCopy ,
88 kFBCharacterLoadRetarget ,
89 kFBCharacterLoadPlotIfSampled ,
94 enum FBFileFormatAndVersion
105 kFBDefaultFormatAndVersion = kFBFBX2020
112 enum FBOptionsContext {
113 kFBOptionsContextSave ,
114 kFBOptionsContextSaveSelection ,
115 kFBOptionsContextLoad ,
116 kFBOptionsContextMultiLoad ,
117 kFBOptionsContextMerge,
133 FBFbxOptions(
bool pLoad,
const char * pFilePathToLoad = NULL, HIObject pObject = NULL);
140 void SetAll( FBElementAction pElementAction,
bool pAnimation );
147 void SaveToString(
FBString& pString, FBOptionsContext context );
154 void SetFromString(
const char* pString, FBOptionsContext context );
308 int GetTakeCount()
const;
313 bool GetTakeSelect(
int pTakeIndex)
const;
319 void SetTakeSelect(
int pTakeIndex,
bool pSelect);
324 const char* GetTakeName(
int pTakeIndex)
const;
330 void SetTakeName(
int pTakeIndex,
const char* pName);
335 const char* GetTakeDescription(
int pTakeIndex)
const;
341 void SetTakeDescription(
int pTakeIndex,
const char* pDescription);
346 const char* GetTakeDestinationName(
int pTakeIndex)
const;
352 void SetTakeDestinationName(
int pTakeIndex,
const char* pDestinationName);
368 void SetTakeKeyRange(
int pTakeIndex,
FBTimeSpan pKeyTimeSpan);
375 void SetNamespaceList(
const FBStringList& pNamespaceList);
416 void SetMultiLoadNamespaceList(
const FBStringList& pMultiLoadNamespaceList );
426 #ifdef FBSDKUseNamespace FBPropertyElementAction Solvers
Read Write Property: Handling of the Solvers elements.
FBPropertyBool ReplaceControlSet
Read Write Property: Set to true if the character extensions (and their children) should be saved whe...
#define __FBClassDeclare(Name, Parent)
For internal use only.
FBPropertyInt CacheSize
Read Write Property: The Cached buffer size used to accelerate IO system.
FBPropertyBool SaveSelectedModelsOnly
Read Write Property: Indicate that only the selected models will be saved.
FBPropertyElementAction PhysicalProperties
Read Write Property: Handling of the Physical Properties elements.
FBPropertyElementAction Textures
Read Write Property: Handling of the Textures elements.
FBPropertyBool ShadersAnimation
Read Write Property: Handling of the Shaders animation.
FBPropertyBool FileReferenceEdit
Read Write Property: Load/Save the edits made to referenced objects or not.
FBPropertyElementAction Sets
Read Write Property: Handling of the Sets elements.
FBPropertyElementAction Shaders
Read Write Property: Handling of the Shaders elements.
FBPropertyElementAction Audio
Read Write Property: Handling of the Audio elements.
FBPropertyElementAction Models
Read Write Property: Handling of the Models elements.
FBPropertyBool ModelsAnimation
Read Write Property: Handling of the Models animation.
Template class to contain an array of items.
FBPropertyBool IgnoreConflicts
Read Write Property: Set to true to ignore conflicts between objects in character extensions and obje...
FBPropertyBool BaseCameras
Read Write Property: Consider base camera settings.
FBPropertyBool UpdateRecentFiles
Read Write Property: Set to true to update recent file list.
FBPropertyBool KeepTransformHierarchy
Read Write Property: Indicate whether we keep transform hierarchy when SaveSelectedModelsOnly is true...
FBPropertyElementAction KeyingGroups
Read Write Property: Handling of the Keying Groups elements.
FBPropertyElementAction Video
Read Write Property: Handling of the Video elements.
FBPropertyBool SaveCharacterExtensions
Read Write Property: Set to true if the character extensions (and their children) should be saved whe...
FBPropertyElementAction Story
Read Write Property: Handling of the Story elements.
FBPropertyBool ResetDOF
Read Write Property: Set to true if we should change the limits on the target rig.
FBPropertyBool ResetHierarchy
Read Write Property: Set to true if we should reset the character hierarchy.
FBPropertyFileFormatAndVersion FileFormatAndVersion
Read Write Property: File format and version chosen to save the scene.
FBPropertyElementAction Cameras
Read Write Property: Handling of the Cameras elements.
FBPropertyBool CharacterFacesAnimation
Read Write Property: Handling of the Character Faces animation.
FBPropertyBool CamerasAnimation
Read Write Property: Handling of the Cameras animation.
FBPropertyBool GlobalLightingSettings
Read Write Property: Consider global Lighting settings.
FBPropertyBool ClearSelectionBeforeSave
Read Write Property: Set to true if the current selected objects shouldn't saved when call FBApplicat...
FBPropertyBool ConsiderMuteSolo
Read Write property: Consider the mute/solo settings to identify identical layer when merging...
Customize file loading and saving.
#define FB_DEFINE_ENUM(DllTag, Type)
Define an enum and give it the ability to be a property.
FBPropertyBool MaterialsAnimation
Read Write Property: Handling of the Materials animation.
FBPropertyBool CopyCharacterExtensions
Read Write Property: pCopyMissingExtensions Set to true if the character extensions on the rig in the...
FBPropertyBool ShowOptionsDialog
Read Write Property: Set to true if want to pop up options dialog for detail settings.
FBPropertyElementAction CharacterFaces
Read Write Property: Handling of the Character Faces elements.
FBPropertyBool CurrentCameraSettings
Read Write Property: Consider current camera settings.
class K_DLLIMPORT FBPropertyBase< bool, kFBPT_bool > FBPropertyBool
Property: bool
FBPropertyBool PhysicalPropertiesAnimation
Read Write Property: Handling of the Physical Properties animation.
FBPropertyElementAction Poses
Read Write Property: Handling of the Poses elements.
FBPropertyBool NotesAnimation
Read Write Property: Handling of the Notes animation.
FBPropertyElementAction Characters
Read Write Property: Handling of the Characters elements.
FBPropertyBool BonesAnimation
Read Write Property: Handling of the Bones animation.
FBPropertyElementAction Groups
Read Write Property: Handling of the Groups elements.
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
FBPropertyElementAction Materials
Read Write Property: Handling of the Materials elements.
FBPropertyElementAction Bones
Read Write Property: Handling of the Bones elements.
FBPropertyBool CharactersAnimation
Read Write Property: Handling of the Characters animation.
FBPropertyElementAction Devices
Read Write Property: Handling of the Devices elements.
FBPropertyBool CameraSwitcherSettings
Read Write Property: Consider camera switcher settings.
FBPropertyBool SaveControlSet
Read Write Property: Set to true if the rig (and its children) should be saved when call FBApplicatio...
FBPropertyBool CompressArray
Read Write Property: Indicate if the perform compression on the arrays values.
FBPropertyString NamespaceList
Read Write Property: A list of namespaces separated by '~'. On Load, duplicate the loaded objects int...
FBPropertyInt CompressLevel
Read Write Property: The allowed level range for Compression is [0-9] where 0 equals no compression a...
FBPropertyElementAction Actors
Read Write Property: Handling of the Actors elements.
FBPropertyBool UseASCIIFormat
Read Write Property: Indicate if the resulting FBX file will be in binary or ASCII mode...
FBPropertyElementAction Lights
Read Write Property: Handling of the Lights elements.
FBPropertyBool RemoveConstraintReference
Read Write Property: Set to true if we should remove constraint reference.
#define __FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
FBPropertyInt CompressMinSize
Read Write Property: Indicate if the minimum item size for compressing arrays.
FBPropertyBool RemoveEmptyLayer
Read Write property: Remove empty animation layers that are in additive mode, without child or parent...
FBPropertyBool DevicesAnimation
Read Write Property: Handling of the Devices animation.
#define FBSDKNamespace
FBSDKNamespace define.
FBPropertyBool TexturesAnimation
Read Write Property: Handling of the Textures animation.
FBPropertyBool StoryAnimation
Read Write Property: Handling of the Story animation (animatable properties on story objects)...
FBPropertyBool SetPropertyStaticIfPossible
Read Write Property: Set to false if want to keep properties' animated flag even when they are not re...
Property class: const char * (String).
FBPropertyBool TransportSettings
Read Write Property: Consider transport control settings.
FBPropertyElementAction Constraints
Read Write Property: Handling of the Constraints elements.
FBPropertyBool EmbedMedia
Read Write Property: Embed all media in the FBX file itself. When saving in ASCII mode it is not poss...
FBPropertyBool ShowFileDialog
Read Write Property: Set to true if want to pop up dialog for FileName, Format, Embed, Compression, UseTakeName, OneTakePerFile.
FBPropertyTakeSpanOnLoad TakeSpan
Read Write Property: Indicate how the take start and end point should be set. By default it is read f...
FBPropertyBool ActorFacesAnimation
Read Write Property: Handling of the Actor Faces animation.
FBPropertyCharacterLoadAnimationMethod TransferMethod
Read Write Property: How should the animation should be transfered on the target rig.
FBPropertyBool FileReference
Read Write property: Load/Save scene as FileReference.
FBPropertyBool ProcessAnimationOnExtension
Read Write Property: Set to true if animation on character extensions should also be transferred...
FBPropertyBool RetargetOnBaseLayer
Read Write Property: If the transfer method is retarget, set this parameter to control where the reta...
FBPropertyBool ConstraintsAnimation
Read Write Property: Handling of the Constraints animation.
FBPropertyBool SaveCharacter
Read Write Property: Set to true if the character should be saved when call FBApplication::SaveCharac...
class K_DLLIMPORT FBPropertyBase< int, kFBPT_int > FBPropertyInt
Property: int
FBPropertyBool SolversAnimation
Read Write Property: Handling of the Solvers animation.
FBPropertyElementAction Notes
Read Write Property: Handling of the Notes elements.
FBPropertyElementAction Scripts
Read Write Property: Handling of the Scripts elements.
FBPropertyElementAction ActorFaces
Read Write Property: Handling of the Actor Faces elements.
FBPropertyBool LightsAnimation
Read Write Property: Handling of the Lights animation.
MotionBuilder SDK base class.
FBPropertyElementAction CharacterExtensions
Read Write Property: Handling of the Character Extensions.
FBPropertyElementAction FileReferences
Read Write Property: Handling of the FileReferences elements.
FBPropertyElementAction OpticalData
Read Write Property: Handling of the Optical Data elements.