So I need to get return as similar like print results. How to do that?
On Friday, October 5, 2018 at 9:45:16 PM UTC+7, delibrax wrote:
>
> 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! :)
>
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/e29b63e7-517e-4afa-b0ba-bf14c49f6247%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.