Python API 2.0 Reference
|
Public Member Functions | |
def | __init__ () |
def | __repr__ () |
def | __str__ () |
def | asAngMinutes () |
def | asAngSeconds () |
def | asDegrees () |
def | asRadians () |
def | asUnits () |
Static Public Member Functions | |
def | __new__ () |
def | internalToUI () |
def | internalUnit () |
def | setUIUnit () |
def | uiToInternal () |
def | uiUnit () |
Static Public Attributes | |
Angular Unit Types | |
int | kAngMinutes = 3 |
int | kAngSeconds = 4 |
int | kDegrees = 2 |
int | kInvalid = 0 |
int | kLast = 5 |
int | kRadians = 1 |
Properties | |
unit = property(...) | |
value = property(...) | |
Manipulate angular data.
Signature | Parameters | Description |
---|---|---|
MAngle() | Default constructor. Returns a new MAngle with a value of 0.0 radians. | |
MAngle(src) | src - MAngle | Copy constructor. Returns a new MAngle having the same value and unit as src. |
MAngle(value, unit) | value - Float unit - Angular unit type constant | Returns a new MAngle having the specified value and unit. |
def OpenMaya.MAngle.__init__ | ( | ) |
Initialize self. See help(type(self)) for accurate signature.
|
static |
Create and return a new object. See help(type) for accurate signature.
def OpenMaya.MAngle.__repr__ | ( | ) |
Return repr(self).
def OpenMaya.MAngle.__str__ | ( | ) |
Return str(self).
OpenMaya.MAngle.asAngMinutes | ( | ) |
Returns the angular value, converted to minutes of arc.
Signature: | asAngMinutes() |
Parameters: | |
Returns: | Float |
Description: | Returns the angular value converted to minutes of arc. |
OpenMaya.MAngle.asAngSeconds | ( | ) |
Returns the angular value, converted to seconds of arc.
Signature: | asAngSeconds() |
Parameters: | |
Returns: | Float |
Description: | Returns the angular value converted to seconds of arc. |
OpenMaya.MAngle.asDegrees | ( | ) |
Returns the angular value, converted to degrees.
Signature: | asDegrees() |
Parameters: | |
Returns: | Float |
Description: | Returns the angular value converted to degrees. |
OpenMaya.MAngle.asRadians | ( | ) |
Returns the angular value, converted to radians.
Signature: | asRadians() |
Parameters: | |
Returns: | Float |
Description: | Returns the angular value converted to radians. |
OpenMaya.MAngle.asUnits | ( | ) |
Returns the angular value, converted to the specified units.
Signature: | asUnits(unit) |
Parameters: | unit - Angular unit type constant |
Returns: | Float |
Description: | Returns the angular value converted to the specified unit. |
|
static |
Converts a value from Maya's internal units to the units used in the UI.
Name: | internalToUI(internalValue) |
Parameters: | internalValue - Float |
Returns: | Float |
Description: | Interprets internalValue as an angular value in Maya's internal units and returns it converted to UI units. |
|
static |
Returns the angular unit used internally by Maya.
Name: | internalUnit() |
Parameters: | |
Returns: | Angular unit type constant |
Description: | Returns the unit type used by Maya to store angular values internally (e.g. in plugs and binary files). |
|
static |
Sets the angular unit used in Maya's UI.
Name: | setUIUnit(newUnit) |
Parameters: | newUnit - Angular unit type constant |
Returns: | None. |
Description: | Sets the units used by Maya's UI when entering and displaying angular values. |
|
static |
Converts a value from the units used in the UI to Maya's internal units.
Name: | uiToInternal(uiValue) |
Parameters: | uiValue - Float |
Returns: | Float |
Description: | Interprets uiValue as an angular value in Maya's UI units and returns it converted to UI units. |
|
static |
Returns the units used to display angles in Maya's UI.
Name: | uiUnit() |
Parameters: | |
Returns: | Angular unit type constant |
Description: | Returns the units currently used by Maya's UI when entering and displaying angular values. |
|
static |
Name: | kAngMinutes |
Type: | Int |
Description: | Minutes of arc. |
|
static |
Name: | kAngSeconds |
Type: | Int |
Description: | Seconds of arc. |
|
static |
Name: | kDegrees |
Type: | Int |
Description: | Degrees. |
|
static |
Name: | kInvalid |
Type: | Int |
Description: |
|
static |
Name: | kLast |
Type: | Int |
Description: | Marker for end of angular type constants. |
|
static |
Name: | kRadians |
Type: | Int |
Description: | Radians. |
|
static |
Angular units used by the angle.
Name: | unit |
Type: | Angular unit type constant |
Access: | RW |
Description: | Angulat units in which value is interpreted. |
|
static |
Value of the angle.
Name: | value |
Type: | Float |
Access: | RW |
Description: | Raw value of angle. |