Skip to content

Instantly share code, notes, and snippets.

@neilus
Created March 27, 2012 20:10
Show Gist options
  • Save neilus/2219830 to your computer and use it in GitHub Desktop.
Save neilus/2219830 to your computer and use it in GitHub Desktop.
>>> driver = ['IK.foot.L','IK.foot.R','IK.hand.L','IK.hand.R']
>>> drivermap = {'hand.L':2, 'forearm.L':2, 'hand.R':3, 'forearm.R':3, 'shin.L':1, 'foot.L':1, 'shin.R':2, 'foot.R':2}
>>> driver[drivermap[bpy.context.active_bone.name]]
'IK.hand.L'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment