[Maya-Python] Re: 'Pickeling' pymel objects?

2009-10-27 Thread Chad Dombrova
well, that's kind of a tricky question. creating the missing nodes would be very difficult because we would have to essentially recreate a maya ascii/binary scene loader: pickle all attribute values and connections and attempt to recreate them if missing. IMHO this would be too complex

[Maya-Python] Re: 'Pickeling' pymel objects?

2009-10-27 Thread AK Eric
I don't use pymel, but I do use Python and pickle in Maya ;) From your above example, it looks like x is a tuple with two strings in it? Or is pymel storing more complex objects as the name representation of the nodes rather than strings? I'm not sure why this would choke (if it's just a tuple

[Maya-Python] Re: 'Pickeling' pymel objects?

2009-10-27 Thread chadrik
PyNodes already have special code to ensure they will pickle, and they will correctly unpickle as long as the maya objects in the pickle exist in the current scene. the question is, what should pymel do if the node/attr does not exist? Ah-hah! That's cool. So, I actually ran into a