Last active
May 16, 2020 14:41
-
-
Save mclavan/30acbfe4e64216ca57188e1db2f25740 to your computer and use it in GitHub Desktop.
Session 5/16/20
This file contains hidden or 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
| ''' | |
| Coding Session 5/16/20 | |
| import session_5_16_20 | |
| reload(session_5_16_20) | |
| ''' | |
| print('Howdy!') | |
| import pymel.core as pm | |
| # Pseudo Code | |
| joints = pm.ls(sl=True, dag=True) | |
| # list ranges(slices) python list slice | |
| for current_joint in joints[0:-1]: | |
| print current_joint | |
| # Create control | |
| # circle -c 0 0 0 -nr 0 1 0 -sw 360 -r 1 -d 3 -ut 0 -tol 0 -s 8 -ch 1; | |
| icon = pm.circle(c=(0, 0, 0), ch=1, d=3, ut=0, sw=360, s=8, r=1, tol=0, nr=(1, 0, 0)) | |
| # Group | |
| # group; | |
| local = pm.group() | |
| # Move control to target joint | |
| # parentConstraint -weight 1; | |
| # Delete constraint | |
| kenny = pm.parentConstraint(current_joint, local, weight=1) | |
| pm.delete(kenny) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment