[Maya][Python] Soft selection weight

#1

Hi,
does anyone knows a way of getting the soft selection weight per component ( vertex in my case ) with pymel or any python way in Maya?

Thanks!

#2

Hi Phantom,

For that, you’ll likely want to use the Maya API. This is how I did it for one of my tools.

(btw, I import maya.OpenMaya as omo because I also import maya.api.OpenMaya as om in my full tool. But I haven’t rewritten this with the new API yet.)

2 Likes
#3

That’s great, I never really used OpenMaya before, always PyMel, but there doesn’t seem to be a way to do it with PyMel so I will use your way instead!

Thank you so much! :slight_smile: