In-place division by a float value. The units of the left operand are retained.
Comparison Support
All comparisons are supported.
Comparisons are done in a common unit, so comparisons of times using different units will give the expected results. For example, an MTime of 60 seconds will be equal to an MTime of one minute and less than an MTime of one hour.
Constructor & Destructor Documentation
OpenMaya.MTime.__init__
(
)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Member Function Documentation
OpenMaya.MTime.__add__
(
)
x.__add__(y) <==> x+y
OpenMaya.MTime.__div__
(
)
x.__div__(y) <==> x/y
OpenMaya.MTime.__eq__
(
)
x.__eq__(y) <==> x==y
OpenMaya.MTime.__ge__
(
)
x.__ge__(y) <==> x>=y
OpenMaya.MTime.__gt__
(
)
x.__gt__(y) <==> x>y
OpenMaya.MTime.__iadd__
(
)
x.__iadd__(y) <==> x+y
OpenMaya.MTime.__idiv__
(
)
x.__idiv__(y) <==> x/y
OpenMaya.MTime.__imul__
(
)
x.__imul__(y) <==> x*y
OpenMaya.MTime.__isub__
(
)
x.__isub__(y) <==> x-y
OpenMaya.MTime.__le__
(
)
x.__le__(y) <==> x<=y
OpenMaya.MTime.__lt__
(
)
x.__lt__(y) <==> x<y
OpenMaya.MTime.__mul__
(
)
x.__mul__(y) <==> x*y
OpenMaya.MTime.__ne__
(
)
x.__ne__(y) <==> x!=y
OpenMaya.MTime.__radd__
(
)
x.__radd__(y) <==> y+x
OpenMaya.MTime.__rdiv__
(
)
x.__rdiv__(y) <==> y/x
OpenMaya.MTime.__repr__
(
)
x.__repr__() <==> repr(x)
OpenMaya.MTime.__rmul__
(
)
x.__rmul__(y) <==> y*x
OpenMaya.MTime.__rsub__
(
)
x.__rsub__(y) <==> y-x
OpenMaya.MTime.__str__
(
)
x.__str__() <==> str(x)
OpenMaya.MTime.__sub__
(
)
x.__sub__(y) <==> x-y
OpenMaya.MTime.asUnits
(
)
Return the time value, converted to the specified units.
Signature:
asUnits(unit)
Parameters:
unit - Unit Types constant
Returns:
float
Description:
Returns the time value converted to the specified unit.
OpenMaya.MTime.setUIUnit
(
)
static
Change the units used to display time in Maya's UI.
Name:
setUIUnit(unit)
Parameters:
unit - Unit Type constant
Returns:
None
Description:
Sets the unit type to be used by Maya's UI to display time values.
OpenMaya.MTime.ticksPerSecond
(
)
static
Returns the number of ticks per second, the smallest unit of time available.
OpenMaya.MTime.uiUnit
(
)
static
Return the units used to display time in Maya's UI.