Skip to content

Instantly share code, notes, and snippets.

@SEVEZ
Created August 29, 2015 11:26
Show Gist options
  • Save SEVEZ/8534f377e2c485e55226 to your computer and use it in GitHub Desktop.
Save SEVEZ/8534f377e2c485e55226 to your computer and use it in GitHub Desktop.
import maya.cmds as cmds
def dragAttr( attr_names ):
if not cmds.dragAttrContext('dragAttributeCtx', ex=True):
cmds.dragAttrContext('dragAttributeCtx')
cmds.dragAttrContext( 'dragAttributeCtx', e=True, ct=attr_names )
cmds.setToolTo( 'dragAttributeCtx' )
dragAttr( "Push_Deform2.inflation" )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment