Re: Custom command: returning an array?

Date : Thu, 02 Mar 2006 10:53:03 +1100
To : XSI(at)Softimage.COM
From : Eoin Murphy <eoinm(at)al.com.au>
Subject : Re: Custom command: returning an array?
Aloys, I thought you were going to stick to Python and I could do C++?

Eoin Murphy wrote:
Yes:

XSI::CStatus Command_Execute( XSI::CRef& in_context )
{
    CValueArray io_retVals;

    //stick something in io_retVals

    ctxt.PutAttribute( L"ReturnValue", io_retVals );

}

...it will return a SafeArray...

Mathieu Leclaire 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



--

E O I N   M U R P H Y
A n i m a l   L o g i c  F i l m
+61 2 9383-4392
==================================================



--

E O I N   M U R P H Y
A n i m a l   L o g i c  F i l m
+61 2 9383-4392
==================================================


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.