This reference page is linked to from the following overview topics: Customizing the MotionBuilder SDK, Optical devices, Keyframe Animation on Referenced Items, FBCamera - Cameras, FBPose - Poses.
#include <mobu-python-api.h>
Time data structure.
Public Member Functions |
|
def | __reduce__ () |
def | __init__ () |
def | __repr__ () |
def | Get () |
def | GetFrame () |
def | SetFrame () |
def | GetMilliSeconds () |
def | GetSecondDouble () |
def | GetTimeString () |
def | Set () |
def | SetMilliSeconds () |
def | SetSecondDouble () |
def | SetTime () |
def | SetTimeString () |
def | __add__ () |
def | __sub__ () |
def | __eq__ () |
def | __ne__ () |
def | __gt__ () |
def | __ge__ () |
def | __lt__ () |
def | __le__ () |
Public Attributes |
|
const FBTime | MinusInfinity |
const FBTime | Zero |
const FBTime | OneSecond |
const FBTime | OneMinute |
const FBTime | OneHour |
const FBTime | Infinity |
def __reduce__ | ( | ) |
def __init__ | ( | ) |
Python Docstring:
__init__( (object)arg1 [, (object)arg2]) -> None __init__( (object)arg1, (object)arg2, (object)arg3 [, (object)arg4 [, (object)arg5 [, (object)arg6 [, (FBTimeMode)arg7]]]]) -> None __init__( (object)arg1, (FBTime)arg2) -> None
C++ Constructors:
The reference documentation for the following C++ symbols may
contain additional relevant information.
def __repr__ | ( | ) |
def Get | ( | ) |
Python Docstring:
Get( (FBTime)arg1) -> int
Related C++ documentation:
The reference documentation for the following C++ symbols may
contain additional relevant information.
def GetFrame | ( | ) |
Python Docstring:
GetFrame( (FBTime)arg1 [, (FBTimeMode)arg2]) -> int
C++ Signature:
kLongLong GetFrame(FBTimeMode pTimeMode = kFBTimeModeDefault)
Get the frame count. With this function, it is possible to obtain the cumulative and local frame counts.
pTimeMode | Time mode to get the constant (default is kFBTimeModeDefault). |
def SetFrame | ( | ) |
Python Docstring:
SetFrame( (FBTime)arg1, (object)arg2 [, (FBTimeMode)arg3]) -> None
C++ Signature:
void SetFrame(kLongLong pFrames, FBTimeMode pTimeMode = kFBTimeModeDefault)
Set time in frame format.
pFrames | The number of frames. |
pTimeMode | The time mode identifier which will dictate the extraction algorithm. |
def GetMilliSeconds | ( | ) |
Python Docstring:
GetMilliSeconds( (FBTime)arg1) -> int
C++ Signature:
kLongLong GetMilliSeconds()
Get milliseconds for time.
def GetSecondDouble | ( | ) |
Python Docstring:
GetSecondDouble( (FBTime)arg1) -> float
C++ Signature:
double GetSecondDouble()
Get seconds as double.
def GetTimeString | ( | ) |
Python Docstring:
GetTimeString( (FBTime)arg1 [, (FBTimeMode)arg2 [, (ETimeFormats)arg3]]) -> str
C++ Signature:
FBString GetTimeString(FBTimeMode pMode = kFBTimeModeDefault, ETimeFormats pFormat = eDefaultFormat)
Get time as a string.
pMode | Time mode (default=kFBTimeModeDefault) to use (call FBSystem().GetTransportFps() to the the current UI displayed mode). |
pFormat | Format to use for the returned string(default=FBTime::eDefaultFormat). |
def Set | ( | ) |
Python Docstring:
Set( (FBTime)arg1, (object)arg2) -> None
C++ Signature:
void Set(kLongLong pTime)
Set time value from a long.
pTime | Time value to set. |
def SetMilliSeconds | ( | ) |
Python Docstring:
SetMilliSeconds( (FBTime)arg1, (object)arg2) -> None
C++ Signature:
void SetMilliSeconds(kLongLong pMilliSeconds)
Set milliseconds time.
pMilliSeconds | MilliSeconds value. |
def SetSecondDouble | ( | ) |
Python Docstring:
SetSecondDouble( (FBTime)arg1, (object)arg2) -> None
C++ Signature:
void SetSecondDouble(double pTime)
Set seconds from double.
pTime | Time to set seconds from. |
def SetTime | ( | ) |
Python Docstring:
SetTime( (FBTime)arg1, (object)arg2 [, (object)arg3 [, (object)arg4 [, (object)arg5 [, (object)arg6 [, (FBTimeMode)arg7]]]]]) -> None
C++ Signature:
void SetTime(int pHour, int pMinute = 0, int pSecond = 0, int pFrame = 0, int pField = 0, FBTimeMode pTimeMode = kFBTimeModeDefault)
Set time (from separate values)
pHour | Hour value. |
pMinute | Minute value(default=0). |
pSecond | Second value(default=0). |
pFrame | Frame value(default=0). |
pField | Field value(default=0). |
pTimeMode | Time mode to get time as(default=kFBTimeModeDefault). |
def SetTimeString | ( | ) |
Python Docstring:
SetTimeString( (FBTime)arg1, (str)arg2) -> None
C++ Signature:
void SetTimeString(const char * pTime)
Set time from string.
pTime | String to set time from. |
def __add__ | ( | ) |
Python Docstring:
__add__( (FBTime)arg1, (FBTime)arg2) -> object __add__( (FBTime)arg1, (object)arg2) -> object
def __sub__ | ( | ) |
Python Docstring:
__sub__( (FBTime)arg1, (FBTime)arg2) -> object __sub__( (FBTime)arg1, (object)arg2) -> object
def __eq__ | ( | ) |
def __ne__ | ( | ) |
def __gt__ | ( | ) |
def __ge__ | ( | ) |
def __lt__ | ( | ) |
def __le__ | ( | ) |
const FBTime MinusInfinity |
Time constant: Minus Infinity, the lowest negative time value.