Last active
August 29, 2015 14:15
-
-
Save nrtkbb/fe2a0a5c8b8c7e4501db to your computer and use it in GitHub Desktop.
[Maya] NurbsCurveを選択して実行するとCV0の位置にピボットを移動するやつ
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
import pymel.core as pm | |
for trans in pm.ls(sl=True): | |
shape = trans.getShape() | |
if not type(shape) == pm.nodetypes.NurbsCurve: | |
print ('{} is not NurbsCurve. skipped.'.format(shapw.longName())) | |
continue | |
trans.setPivots(shape.getCV(0)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment