Customize motion file exporting. More...
#include <pyfbsdk_generated.h>
Public Member Functions | |
FBMotionFileExportOptions (str pFilePath) | |
Constructor. | |
str | GetFilePath () |
Get the file path for the motion file(s) to create. | |
int | GetTakeCount () |
Get the take count that can be exported (i.e.: the take count in the scene). | |
str | GetTakeFilePath (int pTakeIndex) |
Get the export file path for given take. | |
float | GetTakeFrameRate (int pTakeIndex) |
Get the actual frame rate of the given take as a double, useful when you have a custom frame rate. | |
str | GetTakeName (int pTakeIndex) |
Get the take name of the given take. | |
bool | GetTakeSelect (int pTakeIndex) |
Get the export selection status of the given take. | |
FBTime | GetTakeStart (int pTakeIndex) |
Get the start time of the given take. | |
FBTime | GetTakeStop (int pTakeIndex) |
Get the stop time of the given take. | |
FBTimeMode | GetTakeTimeMode (int pTakeIndex) |
Get the time mode of the given take. | |
bool | IsValid () |
Is this object valid? | |
bool | ResetTakeInfo () |
Reset all the take info hold by this object. | |
bool | SetFilePath (str pFilePath) |
Set the file path for the motion file(s) to create. | |
bool | SetTakeFilePath (int pTakeIndex, str pFilePath) |
Set the export file path for given take. | |
bool | SetTakeSelect (int pTakeIndex, bool pSelect) |
Set the export selection status of the given take. | |
bool | SetTakeTimeMode (int pTakeIndex, FBTimeMode pTimeMode, float pCustomFrameRate=30.0) |
Set the time mode of the given take. | |
![]() | |
FBComponent () | |
Constructor. | |
str | ClassName () |
Get the class name. | |
DisableObjectFlags (FBObjectFlag pFlags) | |
Disable a specific Object Flags. | |
EnableObjectFlags (FBObjectFlag pFlags) | |
Enable a specific Object Flags. | |
bool | FBCreate () |
Open Reality Creation function. | |
FBDelete () | |
Open Reality deletion function. | |
FBDestroy () | |
Open Reality destruction function. | |
FBObjectFlag | GetObjectFlags () |
Get all Object Flags (concatenated). | |
bool | GetObjectStatus (FBObjectStatus pStatus) |
Check to see if an object status is enabled. | |
FBFileReference | GetOwnerFileReference (p0) |
Get the owner FileReference object. | |
HardSelect () | |
HardSelect. | |
bool | HasObjectFlags (FBObjectFlag pFlags) |
Check whether a specific object flag is enabled. | |
bool | Is (int pTypeId) |
Returns true if object is of type TypeId. | |
bool | ProcessNamespaceHierarchy (FBNamespaceAction pNamespaceAction, str pNamespaceName, str pReplaceTo=None, bool pAddRight=True) |
ProcessNamespaceHierarchy. | |
bool | ProcessObjectNamespace (FBNamespaceAction pNamespaceAction, str pNamespaceName, str pReplaceTo=None, bool pAddRight=True) |
ProcessObjectNamespace. | |
int | PropertyAdd (FBProperty pProperty) |
Add a property to the component's property manager. | |
bool | PropertyAddReferenceProperty (FBProperty pReferenceProperty) |
Add a reference property to the component's property manager. | |
FBProperty | PropertyCreate (str pName, FBType pType, str pDataType, bool pAnimatable, bool pIsUser=False, FBProperty pReferenceSource=None) |
Create user or dynamic property. | |
PropertyGetModifiedList (FBArrayTemplate< FB > pPropList, FBPlugModificationFlag pModificationFlags) | |
Get list of properties which have been modified since last loading. | |
PropertyRemove (FBProperty pProperty) | |
Remove a Property from the component's Property manager. | |
SetObjectFlags (FBObjectFlag pFlags) | |
SetObjectFlags. | |
SetObjectStatus (FBObjectStatus pStatus, bool pValue) | |
Enable/Disable a specific Object Status. | |
Public Attributes | |
bool | AddPrefix |
Read Write Property: Effective only if the OneTakePerFile property is true. True to prefix the constructor's specified filename in the take export file path, false otherwise. Changing this property value will reset any user-specified file path set with the SetTakeFilePath method. | |
FBFileCreation | FileCreation |
Read Write Property: Operation to execute when trying to write a file that already exists on disk. | |
FBModelSelection | ModelSelection |
Read Write Property: Specifies the content to export. | |
bool | OneTakePerFile |
Read Write Property: True to export each take in a separated file, false to export all takes in a single file. Changing this property value will reset any user-specified file path set with the SetTakeFilePath method. | |
![]() | |
FBListComponent | Components |
List: List of components. | |
str | LongName |
Read Write Property: Name and namespace for object. | |
str | Name |
Read Write Property: Unique name of object. See sample: RemoveSuffixFromNameOfSceneElements.py. | |
FBListComponent | Parents |
List: Parents. | |
FBManager | PropertyList |
Read Only Property: Manages all of the properties for the component. | |
bool | Selected |
Read Write Property: Selected property. | |
int | TypeInfo |
Contains the Type information of the object. | |
![]() | |
str | ClassGroupName |
ClassGroupName of the object. | |
int | TypeInfo |
TypeInfo. | |
Customize motion file exporting.
FBMotionFileExportOptions | ( | str | pFilePath | ) |
Constructor.
Create an FBMotionFileExportOptions object to be used when exporting a motion file. Pass the file path for the motion file(s) to create, modify the options and then call the file export process. Only the FBX file format is supported for now.
pFilePath | The file path for the motion file(s) to create. |
str GetFilePath | ( | ) |
Get the file path for the motion file(s) to create.
This is the file path provided with the constructor or with the SetFilePath method.
int GetTakeCount | ( | ) |
Get the take count that can be exported (i.e.: the take count in the scene).
Get the export file path for given take.
pTakeIndex | Index of take to get the file path. |
Get the actual frame rate of the given take as a double, useful when you have a custom frame rate.
pTakeIndex | Index of take to get the frame rate. |
Get the take name of the given take.
pTakeIndex | Index of take to get the name. |
Get the export selection status of the given take.
pTakeIndex | Index of take to get the selection status. |
Get the start time of the given take.
pTakeIndex | Index of take to get the start time. |
Get the stop time of the given take.
pTakeIndex | Index of take to get the stop time. |
FBTimeMode GetTakeTimeMode | ( | int | pTakeIndex | ) |
Get the time mode of the given take.
pTakeIndex | Index of take to get the time mode. |
bool IsValid | ( | ) |
Is this object valid?
bool ResetTakeInfo | ( | ) |
Reset all the take info hold by this object.
Useful to call when the scene takes changed since the creation of this object.
Set the file path for the motion file(s) to create.
When the OneTakePerFile property is true, the default takes file path will be based on this file path.
pFilePath | The file path for the motion file(s) to create. |
Set the export file path for given take.
pTakeIndex | Index of take to set the file path. |
pFilePath | The file path of the given take. |
Set the export selection status of the given take.
pTakeIndex | Index of take to set the selection status. |
pSelect | True if the take should be exported, false otherwise. |
bool SetTakeTimeMode | ( | int | pTakeIndex, |
FBTimeMode | pTimeMode, | ||
float | pCustomFrameRate = 30.0 |
||
) |
Set the time mode of the given take.
pTakeIndex | Index of take to set the time mode. |
pTimeMode | Time mode to set. |
pCustomFrameRate | Custom frame rate if pTimeMode is set to kFBTimeModeCustom, unused otherwise (default is 30.0). |
bool AddPrefix |
Read Write Property: Effective only if the OneTakePerFile property is true. True to prefix the constructor's specified filename in the take export file path, false otherwise. Changing this property value will reset any user-specified file path set with the SetTakeFilePath method.
FBFileCreation FileCreation |
Read Write Property: Operation to execute when trying to write a file that already exists on disk.
FBModelSelection ModelSelection |
Read Write Property: Specifies the content to export.
bool OneTakePerFile |
Read Write Property: True to export each take in a separated file, false to export all takes in a single file. Changing this property value will reset any user-specified file path set with the SetTakeFilePath method.