Re: [Maya-Python] Auto rig builder

2017-07-20 Thread Jeremie Passerin
Mgear is free open source https://gumroad.com/l/mgear On Jul 14, 2017 15:33, "Marcus Ottosson" wrote: > There's always good old trusty Advanced Skeleton, MEL through-and-through. > :) > > - http://www.animationstudios.com.au/advanced-skeleton-download > > And then there's also Anzovin's work.

[Maya-Python] Get objects that are not uv

2017-07-20 Thread likage
Hi all, I have this model in which some of the geometries within are not uv-ed. As in, you select the geometry >> open up uv editor >> it is blank. And so it is causing some problems with a script I am doing. Are there any ways in which I can use python to check for such geos with the blank uvs?

[Maya-Python] Re: Get objects that are not uv

2017-07-20 Thread Andres Weber
There's probably a hundred ways to do this but here's one: import pymel.core as pm sel = pm.ls(sl=True) sel[0].getShape().getUVs() >>> ([], []) # This is empty/no UVs # Or you could do sel[0].getShape().map # or sel[0].map # Empty objects should just return something like (depending on object na

[Maya-Python] Re: Get objects that are not uv

2017-07-20 Thread Robert White
If you need to avoid pymel for some reason: from maya import cmds def find_unmapped_meshes(): unmapped_meshes = [] for mesh in cmds.ls(type='mesh'): uvs = cmds.polyListComponentConversion(mesh, toUV=True) uvs = cmds.ls(uvs, fl=True) if len(mesh) < 2: unmapped_meshes.append(mesh) return unmapped_m