When I first started passing single objects into functions and loops I found that python(maya) was treating them as the strings of the object’s name rather than the object itself.
This error depends on how the variable of the object is structured. If it is a single object in a list then you will get this problem. The solution is to simply encapsulate the variable in a list when you call the function:
function([object])
Share
15
DEC
2017
DEC
2017
About the Author:
I RUN this joint! And I am a digital artist. BFA from the University of Colorado with an emphasis in 3D Animation. I worked in medical animation for some time. I then narrowly escaped with an only partially crushed spirit. Since then I have been expanding my skill set, reaching out into custom coding, game and app development.