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?
 
Scripting: static collection

Scripting: static collection

2004-03-09       - By Helge Mathee

 Back
Reply:     1     2     3     4  

try not using a collection, cos it'll be referenced.

use an array instead:

var ch_Arr = new Array();

for(var i=0;i<selection.count;i++)
{
   ch_Arr[i] = selection.item(i);
}

that'll work.
you can access the array afterwards..

cheers,

Helge
-- -- Original Message -- --
From: "Christian Rittener" <chrr@(protected)>
To: <XSI@(protected)>
Sent: Tuesday, March 09, 2004 8:19 PM
Subject: Scripting: static collection


> Hello,
>
> I'm trying to go all OOP, so please be indulgent.
>
> In Jscript, I'm trying to use ExtractFromComponents while looping through
> aselection of geometries and then looping through their respective
clusters.
> As soon as a new object is created, it becomes selected, screwing up my
> outer loop. How do get the selection collection to remain fixed to what it
> is at the beginning of the script? I tried copying Selection into a new
> collection, with
>
>                     ch_coll = new ActiveXObject( "XSI.Collection" ) ;
>                     ch_sel = selection ;
>                     ch_coll = ch_sel ;
>
> and looping through the second collection, but the same thing happens...
???
>
> Christian Rittener
>
> ---
> Unsubscribe? Mail Majordomo@(protected) with the following text in body:
> unsubscribe xsi
>

---
Unsubscribe? Mail Majordomo@(protected) with the following text in body:
unsubscribe xsi