On 2010.06.15 13:49, Sveinbjörn J. Tryggvason wrote:
Or am I going about this the wrong way entirely?
one thing you're not doing in the code example you pasted was not following the documentation: "The data block size must be large enough to accomodate ( view width * view height * depth map precision ) bytes of data.".
basically, you need to initialize MScriptUtil buffer with width*height*sizeof(float) amount of data. haven't worked with buffers and MScriptUtil myself (this is where I'd fall back to C++), but I'd start by trying MScriptUtil.createFromList to initialize it, then use getFloatArrayItem() to retreive buffer values.
-- Viktoras www.neglostyti.com -- http://groups.google.com/group/python_inside_maya
