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