Created
May 16, 2016 16:16
-
-
Save AndrewtConroy/540c77fb638fd37ea3d14912ce489901 to your computer and use it in GitHub Desktop.
Selects joints with 'jnt' prefix - python
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
import maya.cmds as cmds | |
pfx ='jnt' | |
jointList = [] | |
fullList = cmds.ls(type='joint') | |
for item in fullList: | |
if item.startswith(pfx ): | |
jointList.append(item) | |
cmds.select(jointList) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment