Adding integer values to collections 2004-05-26 - By Guy Rabiller
Back > Still, I'd be curious to know why XSI barfs an error on that one
Because a Collection store 'objects' or references to objects, not 'values'.
-- guy rabiller | 3d technical director @ LaMaison
Bernard Lebel wrote:
>Well, seems to work with an array. > >Still, I'd be curious to know why XSI barfs an error on that one. > > >Cheers >Bernard > >-- -- Original Message -- -- >From: "Bernard Lebel" <atyss4si@(protected)> >To: <XSI@(protected)> >Sent: Wednesday, May 26, 2004 11:17 AM >Subject: [Script] Adding integer values to collections > > > > >>Hello, >> >>I'm trying to store values in a collection, but when I use the add method >>the script fails (no specific error) >> >>// Get shadow map resolution >>var iShadowRes = e.item().activeprimitive.parameters( >>"ShadowMapRes" ).value; >> >>// Add value to collection >>oShadowMapColl.add( iShadowRes ); >> >> >> >>//ERROR : " - [line 133]" >> >> >> >>Can this be done at all? >> >> >>Thanks >>Bernard >> >> >>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> </head> <body> <pre wrap=""> > Still, I'd be curious to know why XSI barfs an error on that one</pre> Because a Collection store 'objects' or references to objects, not 'values'.<br> <pre class="moz-signature" cols="$mailwrapcol">-- guy rabiller | 3d technical director @ LaMaison</pre> <br> Bernard Lebel wrote:<br> <blockquote type="cite" cite="midBAY15-DAV10L25AExgT000021e9@(protected)"> <pre wrap="">Well, seems to work with an array.
Still, I'd be curious to know why XSI barfs an error on that one.
Cheers Bernard
-- -- Original Message -- -- From: "Bernard Lebel" <a class="moz-txt-link-rfc2396E" href="mailto:atyss4si @(protected)"><atyss4si@(protected)></a> To: <a class="moz-txt-link-rfc2396E" href="mailto:XSI@(protected)"><XSI @(protected)></a> Sent: Wednesday, May 26, 2004 11:17 AM Subject: [Script] Adding integer values to collections
</pre> <blockquote type="cite"> <pre wrap="">Hello,
I'm trying to store values in a collection, but when I use the add method the script fails (no specific error)
// Get shadow map resolution var iShadowRes = e.item().activeprimitive.parameters( "ShadowMapRes" ).value;
// Add value to collection oShadowMapColl.add( iShadowRes );
</pre> <pre wrap="">//ERROR : " - [line 133]"
Can this be done at all?
Thanks Bernard
</pre> </blockquote> <pre wrap=""><!----></pre> </blockquote> <br> </body> </html>
|
|