Last active
December 5, 2016 01:49
-
-
Save suriyadeepan/443739d9c9208f8e6d1c3d943f54d727 to your computer and use it in GitHub Desktop.
Maya kinematics
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
def renamehip(): | |
com.rename('hip') | |
def renameknee(): | |
com.rename('knee') | |
def renameankle(): | |
com.rename('ankle') | |
def renamefoot(): | |
com.rename('foot') | |
def renamefootend(): | |
com.rename('footend') | |
def autoik(): | |
com.ikHandle( sj='hip', ee='ankle', n='handle', sol='ikRPsolver') | |
com.spaceLocator( p=(1, 10, 10),n='locator' ,r=True) | |
com.poleVectorConstraint( 'locator', 'handle' ) | |
com.parentConstraint( 'knee', 'locator') | |
com.window( title="Autorig") | |
com.columnLayout() | |
com.button( label='Autorig', command=('autoik()')) | |
com.button( label='Hip', command=('renamehip()')) | |
com.button( label='Knee', command=('renameknee()')) | |
com.button( label='Ankle', command=('renameankle()')) | |
com.button( label='Foot', command=('renamefoot()')) | |
com.button( label='Footend', command=('renamefootend()')) | |
com.showWindow() |
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
list_of_comp = ['hip', 'knee', 'ankle', 'foot', 'footend'] | |
for item in list_of_comp: | |
com.rename(item) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment