Skip to content

Instantly share code, notes, and snippets.

@wxiaoning
wxiaoning / soft_selection_weights.py
Created August 26, 2021 02:23 — forked from chris-lesage/soft_selection_weights.py
Get a list of soft selection weights in Autodesk Maya
import maya.cmds as cmds
import maya.OpenMaya as omo
# (Open Maya Old)
def soft_selection_weights():
''' create and return a list of the soft selection weights '''
#TODO: Would be nice to rewrite this using the new API. Low priority.
#TODO: Debug on multiple selections
# temporary hack. Turn off symmetry when reading MRichSelection until I learn to use symmetry.