I ran into this problem a few years ago developing a tool.  I don't remember 
how I resolved it, but try using the GridData object instead of reading/writing 
directly to a Jscript array.

GridData.Data = attr.DataArray;

You might have to define one or both dimensions of the GridData object before 
it will work.

Matt




-----Original Message-----
From: softimage-boun...@listproc.autodesk.com 
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Eugen Sares
Sent: Tuesday, October 23, 2012 10:40 AM
To: softimage@listproc.autodesk.com
Subject: setting ICEAttribute.DataArray in JScript

Hi, short question:
how do I set/write the ICEAttribute.DataArray from JScript? Can't find a code 
example.
It is a safe array, that much I found out.

attr.DataArray = [23,44,50]; is not working.
// WARNING : 3392 - Invalid offset specified while extracting data from this 
attribute...

Thanks,
Eugen


Reply via email to