Message 1 of 6

Not applicable
07-14-2020
08:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm writing a Python script to determine if an object has UV coordinates or not. - by counting the UVshells.
This should be straight forward.
import maya.cmds as cmds
cmds.cube( n ='cubey' )
# number of UV shells
UV = cmds.polyEvaluate( uvShell=True )
print UV
Only I get the error:
TypeError: file <maya console> line 6: Invalid flag 'uvShell' #
So I'm a little confused since the above is used as an example in the docs. 😲
Solved! Go to Solution.