1

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?

Bleeding Fingers
  • 6,993
  • 7
  • 46
  • 74
TheBeardedBerry
  • 1,636
  • 5
  • 20
  • 30

2 Answers2

2

Alternative to eval:

import pymel.core as pc
pc.mel.removeUnusedInfluences()
Bleeding Fingers
  • 6,993
  • 7
  • 46
  • 74
0

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

theodox
  • 12,028
  • 3
  • 23
  • 36