RE: VB script - selection list

Date : Fri, 27 Apr 2007 17:09:23 +0100
To : <XSI(at)Softimage.COM>
From : "Adam Seeley" <adam.seeley(at)clearpost.co.uk>
Subject : RE: VB script - selection list

Cheers guys, that's the ticket.

Adam.



> -----Original Message-----
> From: owner-xsi(at)Softimage.COM 
> [mailto:owner-xsi(at)Softimage.COM] On Behalf Of André Adam
> Sent: 27 April 2007 16:50
> To: XSI(at)Softimage.COM
> Subject: Re: VB script - selection list
> 
> Yep, you have to copy the selection. Wow, my first lines 
> VBScript in years:
> 
> set cSelCopy = CreateObject("XSI.Collection") 
> cSelCopy.AddItems Selection
> 
> Cheers!
> 
>     -André
> 
> 
> Adam Seeley wrote:
> > Hi,
> >  
> > A simple question no doubt.
> >  
> > I'm setting up a couple of lists from CPSets so I'm doing this
> > -----------------------
> >
> > SelectObj "CPSet_materials.*"
> >
> > Set mymatlist = application.selection
> >
> > SelectObj "CPSet_models.*"
> >
> > Set mymodellist = application.selection
> >
> > -----------------------
> >
> > Only when I define the second list, the first gets overwritten.
> > I believe this is because mymatlist /and /mymodellist both 
> continue to 
> > point to application.selection
> >  
> > Is there a simple way to create the lists from the 
> > application.selection but keep them safe?
> >  
> > Thanks,
> >  
> > Adam.
> 
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following 
> text in body:
> unsubscribe xsi
> 
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit 
> http://www.messagelabs.com/email 
> ______________________________________________________________________
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.463 / Virus Database: 269.6.1/777 - Release 
> Date: 26/04/2007 15:23
>  
> 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.463 / Virus Database: 269.6.1/777 - Release Date: 26/04/2007 15:23
 

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