delibrax
2018-10-05 14:45:16 UTC
Hi guys, I have function here :
def arrayBPMFolder(obj):
for i in obj:
#print i
relatives = mc.listRelatives(i, p=True, f=True)
#print relatives
for o in relatives:
objs = o.split('|')[-2]
print objs
#return objs
when i *printed* *objs *the result is :
bindCyl03CtrlBPM_grp
bindCyl02CtrlBPM_grp
bindCyl01CtrlBPM_grp
bindCylBase01JntBPM_grp
but then when i *return* *objs *only shown result as bindCyl03CtrlBPM_grp.
any insight? Thanks in advance! :)
def arrayBPMFolder(obj):
for i in obj:
#print i
relatives = mc.listRelatives(i, p=True, f=True)
#print relatives
for o in relatives:
objs = o.split('|')[-2]
print objs
#return objs
when i *printed* *objs *the result is :
bindCyl03CtrlBPM_grp
bindCyl02CtrlBPM_grp
bindCyl01CtrlBPM_grp
bindCylBase01JntBPM_grp
but then when i *return* *objs *only shown result as bindCyl03CtrlBPM_grp.
any insight? Thanks in advance! :)
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/05756fc2-17a1-4dfe-b49f-2760cf82b87c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/05756fc2-17a1-4dfe-b49f-2760cf82b87c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.