Hi there,

I have a small "issue" with pymel and pickle. If I pickle out say a
list that contains some pymel objects, once I try to unpickle that
file, Maya chokes if the pickled pymel nodes are not in the scene. Any
suggestions?

Here is an example:

from pymel import *
import pickle

x = (ls('LeftUpLeg')[0], ls('LeftHandThumb3')[0])
dataFile = 'c:/generic.jnt'

# Dump the List out as a pickled file
file = open(dataFile, 'w')
pickle.dump(x, file)
file.close()

# Read in the jointDateList from the pickled file
file = open(dataFile, 'r')
x = pickle.load(file)
file.close()
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to