Skip to content

Instantly share code, notes, and snippets.

View wigma's full-sized avatar

Cros Edgard wigma

  • Paris
View GitHub Profile
@wigma
wigma / soft_selection_weights.py
Created May 18, 2020 08:38 — 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.