Excellent. Thanks for the input!

/Christian


On Wed, Nov 17, 2010 at 5:40 AM, stephenkmann <[email protected]>wrote:

> You can also run. Delete unused deformers and it basically does the same
> thing.
>
> Not in front of maya but I stole the code out from the file-optimize-
> scripts.
>
> On 11/17/10, Ofer Koren <[email protected]> wrote:
> > you can specify a broader node type - 'deformer':
> >
> > if m.listHistory(type='deformer'):
> >      ...
> >
> > - Ofer
> > www.mrbroken.com
> >
> >
> >
> > On Tue, Nov 16, 2010 at 11:20 PM, Christian Akesson
> > <[email protected]> wrote:
> >> Making a utility method to clean out duplicate shape nodes and I want to
> >> check if a mesh is being deformed.
> >> Instead of the if not m.listHistory(type='skinCluster'): I would love if
> >> there was a way to check if there is any deformer type on the mesh....
> >> ______________________________________________
> >> for m in meshes:
> >> # Filter out bound meshes
> >> if not m.listHistory(type='skinCluster'):
> >> shapes = m.getShapes()
> >> for s in shapes:
> >> if s.intermediateObject.get():
> >> delete(s)
> >> rename(m.getShape(), '%sShape' % m.name())
> >> ________________________________________________
> >> Thanks,
> >> /Christian
> >>
> >> --
> >> http://groups.google.com/group/python_inside_maya
> >
> > --
> > http://groups.google.com/group/python_inside_maya
> >
>
> --
> Sent from my mobile device
>
> --
> http://groups.google.com/group/python_inside_maya
>

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to