Re: Custom command: returning an array?

Date : Thu, 02 Mar 2006 11:13:16 +1100
To : XSI(at)Softimage.COM
From : Rafe Sacks <rafes(at)al.com.au>
Subject : Re: Custom command: returning an array?
Title: RafeSignature
OFF!
________________________________
R A F E   S A C K S
Lead Character TD - Technical
Animal Logic Film
+612  9383 - 4800






michael malinowski wrote:
hehe, not quite, its a bit of wait till then.... nice picture... bit out of season tho :P that really is my only defence.
I would add something reasonably constructive to the mail, but my knowledge of C++ is about the same as rafes knowledge of poker :)

_______________
Mike Malinowski



From: Rafe Sacks <rafes(at)al.com.au>
Reply-To: XSI(at)Softimage.COM
To: XSI(at)Softimage.COM
Subject: Re: Custom command: returning an array?
Date: Thu, 02 Mar 2006 11:00:05 +1100

What the? what are you doing here??

Shouldn't you be dragging yourself through the mud in camouflage somewhere?



________________________________
R A F E   S A C K S
Lead Character TD - Technical
Animal Logic Film
+612  9383 - 4800






michael malinowski wrote:

Aloys, back to work mate, back to work....

_______________
Mike Malinowski




From: Eoin Murphy <eoinm(at)al.com.au>
Reply-To: XSI(at)Softimage.COM
To: XSI(at)Softimage.COM
Subject: Re: Custom command: returning an array?
Date: Thu, 02 Mar 2006 10:53:03 +1100

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
==================================================



---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi



---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi

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.