I can't seem to find the command in PyMEL.
How do you trigger the removeUnusedInfluences
command on a mesh you have selected using PyMEL?
I can't seem to find the command in PyMEL.
How do you trigger the removeUnusedInfluences
command on a mesh you have selected using PyMEL?
Alternative to eval
:
import pymel.core as pc
pc.mel.removeUnusedInfluences()
removeUnusedInfluences is a mel script. To get it from Pymel use the mel object's eval method:
from pymel.all import mel
mel.eval("removeUnusedInfluences()")
more here