Allows to access a pickled data object natively within a maya file.
In ascii mode, the pickle will be encoded into string data, in binary mode
the cPickle will be taken in its original value.
To get the respective dict-references back, we use a tracking dict as proposed
by the API Docs
|
|
|
|
|
_writeToStream(self,
ostream,
asBinary)
Write our data binary or ascii respectively |
source code
|
|
|
writeBinary(self,
out)
cPickle to cStringIO, write in 4 byte packs using ScriptUtil |
source code
|
|
|
readBinary(self,
inStream,
numBytesToRead)
Read in 4 byte packs to cStringIO, unpickle from there |
source code
|
|
|
writeASCII(self,
out)
cPickle to cStringIO, encode with base64 encoding |
source code
|
|
|
readASCII(self,
args,
lastParsedElement)
Read base64 element and decode to cStringIO, then unpickle |
source code
|
|
|
copy(self,
other)
Copy other into self - allows copy pointers as maya copies the data each
time you retrieve it |
source code
|
|
|
|
|
|