No. Griddata can be made all by itself:
var oGridData = XSIFactory.CreateGridData(); oGridData.Rowcount = <n>; oGridData.Data = attr.DataArray; -----Original Message----- From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Eugen Sares Sent: Tuesday, October 23, 2012 11:30 AM To: softimage@listproc.autodesk.com Subject: Re: setting ICEAttribute.DataArray in JScript Thanks, guys! The Python example I found myself, but that does not help in JScript. GridData must reside in a CustomProperty, right? I would have to define one first... not very elegant. Am 23.10.2012 20:09, schrieb Matt Lind: > 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 >