Created
January 23, 2013 11:44
-
-
Save jhoolmans/4604667 to your computer and use it in GitHub Desktop.
Create cube on joints
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 pymel.core as pm | |
from pymel.core.datatypes import Matrix | |
for item in pm.ls(sl=True): | |
cube = pm.polyCube(ch=False) | |
mat = Matrix(pm.xform(item, m=True, ws=True, q=True)) | |
pm.xform(cube, ws=True, m=mat) | |
pm.parent(cube, item) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment