Passing single objects into functions, getting operations on the name string rather than the object itself

Posted by:

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:


  Related Posts
  • No related posts found.

You must be logged in to post a comment.