This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pymel.core as pm | |
""" | |
Take a collection of attributes and interpolate them along a curve. | |
It uses a master remapValue that drives multiple remapValues | |
to simulate the effect of a multi-out curve node. | |
References to "twist", because it was originally written for twisting ribbon IK | |
But it can interpolate any custom attributes you wish | |
Written by Chris Lesage, June 2019 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import maya.cmds as cmds | |
''' | |
# EXAMPLE USAGES: | |
# Removes all unused influences from skinCluster1 | |
remove_unused_influences('skinCluster1') | |
# Removes the two specified joints from Body_SkinCluster, | |
but only if they are not currently weighted to anything. | |
remove_unused_influences('Body_SkinCluster', ['leg_L0_5_jnt', 'leg_R0_5_jnt']) |
NewerOlder