Thanks for looking at it. I replaced the stripPath method but it didnt fix the problem. I simplified it down as much as I could and have it here. I hope it makes sense.
http://pastebin.com/vmRS70AR The stringToString array in my first comment was a typo caused by the autocomplete. On Wednesday, November 28, 2012 6:29:51 PM UTC-5, Justin Israel wrote: > > 1) No need to think about a regex solution. Somewhere in your code (I > don't see it in this example), you are storing a string representation of a > list, inside your other list. I have a feeling it might be your > self.stripPath() method. Could you show that? > > Also, for adding one list to another, you can do it even faster by using > `extend`: > new_ikfk_note_list.extend(self.okfk_stored_notes) > > 2) stringToStringArray is a mel method. You shouldn't need that in python. > You are correct about needing getattr to resolve an attribute from a > string: > > item.leg_ctl = getattr(self, 'leg_ctrl') > > But I don't see you actually storing them as attributes. They are being > stored in a list, right? > > If you post more of the complete code on pastebin or elsewhere, and point > out the lines, I can take a better look. > > -- justin > > > > -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe
