Afaik you can create GridData on the fly without attaching it to a PPG:
XSIFactory.CreateGridData();

Search the SDk docs for "Using a Temporary GridData Object".


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




--
-------------------------------------------
Stefan Kubicek                   Co-founder
-------------------------------------------
          keyvis digital imagery
         Wehrgasse 9 - GrĂ¼ner Hof
           1050 Vienna  Austria
        Phone:    +43/699/12614231
--- www.keyvis.at  ste...@keyvis.at ---
--  This email and its attachments are
--confidential and for the recipient only--

Reply via email to