Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class IkLimb(object):
- # class vars
- axes = ['x','y','z']
- def __init__(self, side='', name=''):
- # instance vars
- self.side = side
- self.name = name
- def makeIk(self):
- cmds.ikHandle( n=self.side + '_' + self.name + '_' + 'ikHndl' )
- for axis in self.axes:
- cmds.setAttr( '.s' + axis, l=True )
- # having 2 joints selected
- ikLimb = IkLimb('l', 'arm').makeIk()
Advertisement
Add Comment
Please, Sign In to add comment