Hi All,
I’m doing a script and what it does is create some curves and parent their shapes nodes. Like this one:
pm.circle ( n='baseCircle_B', nr=(1, 0, 0), c=(1.5, 0, 0), r=1 )
pm.circle ( n='baseCircle_F', nr=(1, 0, 0), c=(0, 0, 0), r=2.5 )
pm.parent('baseCircle_F|baseCircle_FShape','baseCircle_B', shape=True, add=True)
pm.delete('baseCircle_F')
But I need to put it in a module and I don’t know how to make the parent works. Here is what I have:
def proxyCreatorArrow(bc_b,bc_f):
pm.circle ( n=bc_b, nr=(1, 0, 0), c=(1.5, 0, 0), r=1 )
pm.circle ( n=bc_f, nr=(1, 0, 0), c=(0, 0, 0), r=2.5 )
pm.parent(bc_f, bc_b, shape=True, add=True)
pm.delete(bc_f, shape=1)
proxyCreatorArrow('L_INDEX_fin_Ctr_CY','L_INDEX_fin_Ctr_CX' )