Go to: Synopsis. Return value. Flags. Python examples.
polyUVCoverage(
selectionItem[]
, [uvRange=[float, float, float, float]])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
polyUVCoverage is undoable, NOT queryable, and NOT editable.
Return the UV space coverage of the specified components.
If no objects are specified in the command line, then components from selection list will be used.
float[] | UV space coverage percentage |
uvRange
Long name (short name) |
Argument types |
Properties |
|
uvRange(ur)
|
[float, float, float, float]
|
|
|
UV space range for calculating the coverage
The 4 values specify the minimum U, V and maximum U, V in that order. Default is 0.0 0.0 1.0 1.0.
|
|
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can have multiple arguments, passed either as a tuple or a list.
|
import maya.cmds as cmds
# Return UV coverage from selection list
cmds.polyUVCoverage()
# Result: [0.3799999952316284] #
# Return UV coverage from specified components with specified range
cmds.polyUVCoverage('pCube1.f[0:5]', usr=(0,0,2,2));
# Result: [0.09749999642372131] #