Open Reality Reference Guide
|
|
Go to the documentation of this file.
45 #include <kaydaradef.h>
50 #define FBSDK_DLL K_DLLIMPORT
60 #include <fbsdk/fbevaluateinfo.h>
61 #if !defined(K_NO_CONSTRUCTION_HISTORY)
66 #if !defined(K_NO_AUDIO)
70 #if !defined(K_NO_VIDEO)
74 #if !defined(K_NO_DECK)
78 #if !defined(K_NO_ASSETMNG)
82 #if !defined(K_NO_MANIPULATOR)
86 #ifdef FBSDKUseNamespace
87 namespace FBSDKNamespace {;
90 #if !defined(K_NO_CHARACTER)
198 #if !defined(K_NO_CONSTRUCTION_HISTORY)
206 #if !defined(K_NO_AUDIO)
211 #if !defined(K_NO_VIDEO)
225 #if !defined(K_NO_ASSETMNG)
229 #if !defined(K_NO_MANIPULATOR)
499 FBPropertyFileMonitoringType
Type;
638 kFBCRITICAL_TRACE = 1,
639 kFBNORMAL_TRACE = 10,
741 virtual void FileVisited(
const char* pSrc)
const;
742 virtual void DirectoryVisited(
const char* pSrc)
const;
743 bool DoIt(
const char* pSrcPath,
bool pRecursive )
const;
800 #ifdef FBSDKUseNamespace
static bool LibraryLoad(const char *pPath)
Load a library (DLL) into memory.
FBNewKeyInterpolationType
Key Interpolation Type to use when creating new keys.
class K_DLLIMPORT FBPropertyBase< FBVector2d, kFBPT_Vector2D > FBPropertyVector2d
FBPropertyVector2d type definition.
FBPropertyEventConnectionKeyingNotify OnConnectionKeyingNotify
Event: A keying event occurred when objects are being keyed.
FBPropertyString ApplicationPath
Read Only Property: Location where the application is installed.
FBPropertyBool ApplyCacheOnNewModel
Read Write Property: Duplicated the cached models, and assoicated the point cache to the new models.
FBPropertyEvent OnFileChangePythonEditorScript
Event: Python Editor Script file change event.
FBPropertyBool CacheNormal
Read Write Property: Cache normal when true.
K_DLLIMPORT unsigned int FBTraceGetLevel()
Get Global Trace Detailed Level which affects all the output targets.
@ eRendering
State before video renderer renders each frame.
@ kFBNewKeyInterpolation_Linear
Linear interpolation type.
FBPropertyString ComputerName
Read Only Property: Computer name.
High priority critical section class.
FBPropertyEventConnectionNotify OnConnectionNotify
Event: A connection event occurred between objects in the system.
static FBString Map(FBString pPath)
Iterates through all the mapped directories.
const FBStringList & GetCommandLineArgs() const
Returns the command line arguments for SDK.
K_DLLIMPORT void FBObjectPrintLivings(unsigned int pStartUniqueId)
Print those living objects created when logging is enabled.
FBPropertyInt PythonVersion
Read Only Property: The Python interpreter version being used. The value is either 27 or 37.
FBPropertyBool AllowCacheResampling
Read Write Property: Allow the resample models's existing point cache deformation when true.
@ kFBFileMonitoring_FILEREFERENCE
File Reference change monitoring.
FB_FORWARD(FBDirMap)
FBDirMap: Allows to map a directory to another directory.
#define FB_DEFINE_ENUM(DllTag, Type)
Define an enum and give it the ability to be a property.
int GetGroupCount()
Get the number of groups.
@ kFBNewKeyInterpolation_None
Invalid interpolation type, could be returned by the system if it is in an uninitialized state....
@ kFBNewKeyInterpolation_Spline
Spline interpolation type.
K_DLLIMPORT void FBTraceWithLevel(unsigned int pLevel, const char *pFormatString,...)
This function prints useful debugging strings in the console.
FBPropertyModel NewModelRoot
Read Write Property: Valid only when ApplyCacheOnNewModel is on. Create New Models under NewModelRoot...
Loop over directory content.
K_DLLIMPORT unsigned int FBObjectGetGlobalUniqueId()
Get the global static object unique ID counter.
FBPropertyListManipulator Manipulators
List: of manipulators.
FBPropertyModel SceneRootModel
Read Only Property: Scene root model.
class K_DLLIMPORT FBPropertyBase< int, kFBPT_int > FBPropertyInt
Property: int
void RemoveFileFromMonitor(FBString pFilePath)
Remove file from monitoring.
FBPropertyString BuildVersion
Read Only Property: Unique build version string. The format of the build version information is: Majo...
PropertyEvent: Global ConnectionStateNotify event.
FBPropertyEvent OnFileChangeFileReference
Event: File Reference file change event.
static FBString CurrentDirectory()
Get current work directory.
@ kFBNewKeyInterpolation_Smooth
Smooth interpolation type.
static FBPointCacheManager & TheOne()
Get the global object for this class.
static FBString GetSource(int pIndex)
Returns the source directory for the element at specified index.
kInt64 GetFrameNumber()
returns the frame number the video renderer is about to render.
K_DLLIMPORT void FBTrace(const char *pFormatString,...)
This function prints useful debugging strings in the console with kFBNORMAL_TRACE output detailed lev...
FBPropertyString BuildId
Read Only Property: Unique build Id string.
PropertyEvent: Global KeyingNotify event.
FBPropertyVector2d DesktopSize
Read Only Property: The width and height of the desktop.
FBPropertyListAudioOut AudioOutputs
List: Available audio outputs.
const FBStringList & GetLoadedPluginItemsName() const
Returns a string list containing the names of all the loaded plug-in.
PropertyEvent: Global ConnectionNotify event.
K_DLLIMPORT void FBTraceSetLevel(unsigned int pNewLevel)
Set Global Trace Detailed Level which affects all the output targets.
class K_DLLIMPORT FBPropertyBase< double, kFBPT_double > FBPropertyDouble
Property: double
FBPropertyString DefaultPath
Read Write Property: Default point cache file save path.
Point Cache Manager Interface to the point cache manager.
EState
video rendering state
FBKeyControl(HIObject pObject=NULL)
Constructor.
FBPropertyBool CacheAABBox
Read Write Property: Cache AABBox (Axis Aligned Bounding Box) when true.
Audio interface for FBSDK.
@ kFBNewKeyInterpolation_Step
Step interpolation type.
void PauseFileMonitoring(bool pPause=true)
Pause file from monitoring, except for Python Editor script files loaded.
FBPropertyString TempPath
Read Only Property: Temporary path returned by the OS.
void(* FBTraceStubFct)(unsigned int pLevel, const char *pStr)
Trace Stub Function type define.
@ kFBNewKeyInterpolation_TCB
TCB interpolation type.
FBVideo and derivative classes.
FBPropertyModel RootModel
Read Only Property: Root model.
@ kFBNewKeyInterpolation_Custom2
Custom 2 interpolation type.
FBTriggerManager()
Constructor.
@ kFBNewKeyInterpolation_SplineClamp
Spline Clamp interpolation type.
FBPropertyEventUIIdle OnUIIdle
Event: User-interface idle event. Useful callback for less frequent GUI refresh and etc....
FBPropertyBool AreMessageBoxesSuspended
Read Only Property: While true, the system is suspending the messages boxes that would normally be di...
FBPropertyBool AutoKey
Read Write Property: Enable/Disable Auto Key feature (key when moving 3D objects).
Create new manipulators using the FBManipulator class.
FBPropertyString PathImages
Read Only Property: Path to images.
Provides access to the underlying system, and the MotionBuilder scene.
@ kFBNewKeyInterpolation_Fixed
Fixed interpolation type.
FBPropertyListVideoIn VideoInputs
List: Available video inputs.
FBPropertyScene Scene
Read Only Property: Scene.
@ kFBNewKeyInterpolation_SmoothClamp
Smooth Clamp interpolation type.
A character is the link between a motion source and a character model.
K_DLLIMPORT bool FBUnRegisterTraceStubFct(FBTraceStubFct pFct)
Unregister custom trace stub function.
FBPropertyTime LocalTime
Read Only Property: Local time in take.
static void Clear()
Clears the map.
bool GetGroupActive(int pIndex)
Get the active status of a trigger group.
class K_DLLIMPORT FBPropertyBase< FBTime, kFBPT_Time > FBPropertyTime
Property: FBTime
const FBStringList & GetLoadedPluginItemInfo(const char *pPluginItemName) const
Returns a string list containing the information of the specified plug-in item's name.
#define __FBClassDeclare(Name, Parent)
For internal use only.
@ kFBFileMonitoring_InvalidIndex
Invalid value.
PropertyList: Manipulator.
static int GetCount()
Returns the number of items in the map.
FBPropertyListVideoOut VideoOutputs
List: Available video outputs.
@ kFBFileMonitoring_PYTHONEDITORSCRIPT
Python Editor Script change monitoring.
FBPropertyString PathMeshs
Read Only Property: Path to meshes
@ kFBNewKeyInterpolation_Custom0
Custom 0 interpolation type.
#define __FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
FBPropertyBool CreateMultiChannelCache
Read Write Property: Create a single multiple channel point cache file for all models when true.
void Enter()
Enter section.
static void * LibraryGetProcAddress(const char *pPath, const char *pFunctionName)
Get the the address of a function in a specified library.
Trigger engine management.
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
FBPropertyEvent OnFileChangeMainScene
Event: Main scene file change event.
kInt64 GetFrameCount()
returns the total number of frames the video renderer is rendering.
void Leave()
Leave section.
char * GetGroupName(int pIndex)
Get the name of a trigger group.
@ kFBNewKeyInterpolation_Auto
Auto interpolation type.
K_DLLIMPORT void FBSleep(kULong MilliSeconds)
Sleep function Puts system to sleep for specified time.
K_DLLIMPORT unsigned int FBObjectGetLivingCount()
Get current total living object count.
static bool LibraryFree(const char *pPath)
Free a library (DLL) from memory.
@ kFBFileMonitoring_MAINSCENE
Main Scene change monitoring.
Hardware input and output interfaces.
FBPropertyBool Active
Read Write Property: Active status of engine.
PropertyEvent: Base event class.
class K_DLLIMPORT FBArrayTemplate< FBModel * > FBModelList
typedef class FBSDK_DLL FBArrayTemplate<FBModel*> FBModelList;
FBEventVideoFrameRendering(HKEventBase pEvent)
Constructor.
class K_DLLIMPORT FBPropertyBase< bool, kFBPT_bool > FBPropertyBool
Property: bool
File Change Monitoring Interface to the file change monitoring.
FBPropertyBool AlwaysAskForPath
Read Write Property: Always ask for the point cache file save path when true.
K_DLLIMPORT void FBObjectLifeLogEnable(bool pEnable)
Enable object creation / deletion logging.
const FBStringList & GetPythonStartupPath() const
Returns the python startup path.
FBPropertyRenderer Renderer
Read Only Property: Default renderer.
FBPropertyString Path
Read Only Property: The path of changed file.
Contains abstract deck class to interface with a deck.
static FBString GetTarget(int pIndex)
Returns the target directory for the element at specified index.
void MoveKeys(FBTimeSpan pTimeSpan, FBModel *pPivot, FBVector3d pT, FBVector3d pR, FBVector3d pS, FBTime pTime, FBModelList *pModelList=NULL)
Move animation keys in space, with respect to a pivot object.
FBPropertyListObject Models
Read Write Property: Models to be recorded
K_DLLIMPORT void FBMakeFullPath(FBString &pFullPath, const char *pRootPath, const char *pFilePath)
FBeval.
PropertyEvent: Video Frame Rendering Event
@ kFBFileMonitoring_ANIMATIONCLIP
Animation clip change monitoring.
FBPropertyAction SetTransformReference
Action Property: Set the model's current transformation as the reference.
void SetGroupActive(int pIndex, bool pState)
Disable or enable a trigger group.
@ ePluginItemDescription
Plug-in item's description.
FBPropertyBool SuspendMessageBoxes
Read Write Property: While true, all the message boxes, that would normally be displayed,...
@ ePluginItemFileName
Plug-in item's filename.
FBPropertyConstructionHistory ConstructionHistory
Read Only Property: Construction History.
FBEventVideoFrameRendering::EState GetState()
returns the current state of the video renderer.
FBEventFileChange(HKEventBase pEvent)
Constructor.
PropertyEvent: Global ConnectionDataNotify event.
FBCriticalSection()
Constructor.
FBPropertyBool CreateFilePerFrameCache
Read Write Property: Create the point cache file for each frame when true.
FB_DEFINE_COMPONENT(K_DLLIMPORT, AnimationNode)
Animation node class.
const FBStringList & GetPluginPath() const
Returns the plugin path.
static FBFileMonitoringManager & TheOne()
Get the global object for this class.
static FBSystem & TheOne()
Get the global FBSystem object.
FBPropertyDouble ProcessMemory
Read Only Property: The size (MB) of process's working set memory.
bool Init()
Initialize critical section operations.
FBPropertyBool ApplyGlobalTransform
Read Write Property: Include no-deformable models and the global transform to Vertex Cache when true.
FBPropertyInt SaveEveryFrame
Read Write Property: Recording Frequency.
const FBStringList & GetLoadedPluginItemGroups(const char *pPluginItemName) const
Returns a string list containing the groups list in which the specified plug-in item's name belongs t...
FBPropertyDouble Version
Read Only Property: Application version.
FBPropertyEventConnectionDataNotify OnConnectionDataNotify
Event: A data event occurred between objects in the system.
FBPropertyFileMonitoringType Type
Read Only Property: Type of file change event.
@ kFBNewKeyInterpolation_Custom1
Custom 1 interpolation type.
Declaration for the classes FBShaderManager, FBShader, FBPropertyListShader and other subclasses.
FBPropertyTime SystemTime
Read Only Property: System time.
Property class: const char * (String).
PropertyEvent: UI idle event.
Declaration for the FBAssetMng class.
FBPropertyAssetMng AssetManager
Read Only Property: Current asset manager.
MotionBuilder SDK base class.
FBPropertyBool FullScreenViewer
Read Write Property: Indicates that the viewer is in full screen mode.
FBPropertyEventVideoFrameRendering OnVideoFrameRendering
Event: A video frame rendering event occurred when the scene is being off-line rendered into video fi...
void AddFileToMonitor(FBString pFilePath, FBFileMonitoringType pFileMonitoringType)
Add file to monitor.
K_DLLIMPORT bool FBRegisterTraceStubFct(FBTraceStubFct pFct)
Register custom trace stub function.
~FBCriticalSection()
Destructor.
FBPropertyTake CurrentTake
Read Write Property: Current take.
FBPropertyListAudioIn AudioInputs
List: Available audio inputs.
Event: Video Frame offline Rendering Event.
FBPropertyEventConnectionStateNotify OnConnectionStateNotify
Event: A state change event occurred between objects in the system.
FBPropertyDouble FrameRate
Read Only Property: The frame rate of the viewer.
FBPropertyDouble ProcessMemoryPeak
Read Only Property: The size (MB) of process's peak memory.
static void Add(FBString pSourceDir, FBString pTargetDir)
Adds an entry in the map.
FBPropertyEvent OnFileChangeAnimationClip
Event: Animation clip file change event.
class K_DLLIMPORT FBVector3< double > FBVector3d
3D vector.
FBPropertyNewKeyInterpolationType NewKeyInterpolationType
Read Write Property: Current key interpolation type that will be used for new keys.
void CleanFileMonitoring(bool pIncludePythonEditorScripts=true)
Clean files and directories currently been monitored.
FBPropertyListCommPort CommPorts
List: Comm Ports available.
FBFileMonitoringType
File Monitoring Type.
Property: Action Action property to trigger function.
Video Grabbing Options structure.
static FBString MakeFullPath(const char *pRelativeFilePath)
Return the full path.