Skip to content

Instantly share code, notes, and snippets.

View prem-mahato's full-sized avatar
Chilling

Prem Kumar Mahato prem-mahato

Chilling
View GitHub Profile
@chris-lesage
chris-lesage / soft_selection_weights.py
Last active June 10, 2025 09:48
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.