Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
Adding integer values to collections

Adding integer values to collections

2004-05-26       - By Guy Rabiller

 Back
Reply:     1     2     3     4  

> 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="">
&gt; 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)">&lt;atyss4si@(protected)&gt;</a>
To: <a class="moz-txt-link-rfc2396E" href="mailto:XSI@(protected)">&lt;XSI
@(protected)&gt;</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>