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__
(
)
Initialize self. See help(type(self)) for accurate signature.
Member Function Documentation
OpenMaya.MTime.__add__
(
)
Return self+value.
OpenMaya.MTime.__eq__
(
)
Return self==value.
OpenMaya.MTime.__ge__
(
)
Return self>=value.
OpenMaya.MTime.__gt__
(
)
Return self>value.
OpenMaya.MTime.__iadd__
(
)
Return self+=value.
OpenMaya.MTime.__imul__
(
)
Return self*=value.
OpenMaya.MTime.__isub__
(
)
Return self-=value.
OpenMaya.MTime.__itruediv__
(
)
Return self/=value.
OpenMaya.MTime.__le__
(
)
Return self<=value.
OpenMaya.MTime.__lt__
(
)
Return self<value.
OpenMaya.MTime.__mul__
(
)
Return self*value.
OpenMaya.MTime.__ne__
(
)
Return self!=value.
OpenMaya.MTime.__new__
(
)
static
Create and return a new object. See help(type) for accurate signature.
OpenMaya.MTime.__radd__
(
)
Return value+self.
OpenMaya.MTime.__repr__
(
)
Return repr(self).
OpenMaya.MTime.__rmul__
(
)
Return value*self.
OpenMaya.MTime.__rsub__
(
)
Return value-self.
OpenMaya.MTime.__rtruediv__
(
)
Return value/self.
OpenMaya.MTime.__str__
(
)
Return str(self).
OpenMaya.MTime.__sub__
(
)
Return self-value.
OpenMaya.MTime.__truediv__
(
)
Return self/value.
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.