also having some problems with the read/writeBinary methods as well for 
writing/reading MDoubleArray. I thought it would be something like this, but 
its not working.

write:
    unsigned int weightsLength = weights.length();
    out.write( (char*) &weightsLength, sizeof(weightsLength));
    out.write( (char*) &weights, sizeof(double)*weightsLength);

read:
    unsigned int weightsLength = 0;
    in.read( (char*) &weightsLength, sizeof(weightsLength) );
    this->weights.setLength(weightsLength);
    in.read( (char*) &this->weights, sizeof(double)*weightsLength);


help :)

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/356f37bb-2701-4333-ab29-a6ffe27386ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to