Main
|
Resume
|
Showreel
|
Blog
|
Script
|
Contact
connexion
go to footer
expand all
|
collapse all
languages
class
All
JScript|XSI
Python|XSI
JScript|WEB
Python|Maya
All
Memo
learning
DDD
php
tool
keyboard tooltips
rig
Add circle Shape
- tool - felixlecha
def add_circleShape( inJoint, size=1 ): ''' Add a circle shape on in Joint inJoint : string, the name of the joint size : float, define the size of the shape ''' lNCircle = mc.circle( nr=(1, 0, 0), r=size ) mc.delete( lNCircle, constructionHistory= True ) sShape = mc.listRelatives(lNCircle[0], s=True) mc.parent( sShape[0], inJoint, s=True, r=True ) mc.rename( sShape[0], '%sShape' %(inJoint) ) mc.delete( lNCircle[0] ) cSelection = mc.ls(sl=True) for sSel in cSelection: add_circleShape( sSel, size=1)