Exactly. Although XSI gives you a VBArray in the first place, you should
be able to pass back a one-dimensional array. Basically, a
multi-dimensional array is just a one-dimensional one with a special
kind of organisation on top.
-André
oz wrote:
thanks a lot, Guillaume and André,
so basicaly I can output the Jscript array?
when getting the array from positionArray, I get them in VBArray
format, no?
so I thought I need them to be in VBArray format also when I set them...
I'll try it... (confused :) )
Oz.
----- Original Message -----
*From:* guillaume laforge <mailto:guillaume.laforge.3d(at)gmail.com>
*To:* XSI(at)Softimage.COM <mailto:XSI(at)Softimage.COM>
*Sent:* Wednesday, November 08, 2006 2:14 PM
*Subject:* Re: wrting deformation scops in Jscript
In this Jscript SCOP, you will find an example :
http://www.vol2nuit.fr/guillaume/xsi_scripts/model/v2nMaskOp.js
"PositionArray.toArray ()" is used.
1/2
--
Guillaume Laforge
freelance TD | cg Artist
my blog ! http://vol2blog.blogspot.com/
On 11/8/06, *oz* <oz(at)broadcast.co.il <mailto:oz(at)broadcast.co.il>>
wrote:
I am trying to write a scripted Op to change the position of
points of a geometry.
I get the positionArray of the points, then I need to convert
the VBArray to a single dimention Jscript Array,
I change the values, but then I can't convert back into a
VBArray, so I can output the new values to the Out port...
is there any work around this, or should I use VB to do such
tasks?
Oz.
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi