Re: Custom command: returning an array?

Date : Thu, 2 Mar 2006 10:49:48 +1100
To : XSI(at)Softimage.COM
From : "Aloys Baillet" <aloys.baillet(at)gmail.com>
Subject : Re: Custom command: returning an array?
Hi Mathieu,

You should first convert your CDoubleArray to a CValueArray, then cast the CValueArray to a CValue and return it. Then XSI will convert it to a COM SafeArray, and you should be able to get the array in JScript by using the new VBArray(YOURCOMMAND).toArray() call.
Should work, but not tested!

Cheers,

Aloys

On 3/2/06, Mathieu Leclaire <mleclair@hybride.com > wrote:

Can my custom command return an array of values? I have no problem returning a single value or an object collection but I have a CDoubleArray that I would like to return so it could be used in Jscript. How can I do that?

 

 

Mathieu Leclaire

R&D Programmer

Hybride Technologies




--
Aloys Baillet - XSI Technical Director
Character Dpt - Animal Logic
--

Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.