Scripting - Sorting a Collection
| Date : Wed, 17 Oct 2007 18:29:44 +0100 |
| To : <XSI(at)Softimage.COM> |
| From : "Adam Seeley" <Adam.Seeley(at)primefocusworld.com> |
| Subject : Scripting - Sorting a Collection |
Hi,
I've
pulled all the Passes in a Scene into a collection and now I want to Output
information to a text file or Excel sheet.
The
default order of the Collection seems to be the Creation order, but I would like
to output the information in the same order as the Alphanumeric sort that I see
in the Explorer.
There
is the Quicksort function which I could use. This seems to mean that I have put
the collection into an Array to sort it first.
I can
make the array ok but is there a way to easily sort the Collection instead,
otherwise are there any commands lying around that would pipe the Collection
Sstraight into an array (and back). Seems like the kind of function that would
exist already somewhere.
Many
thanks,
Adam.
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.488 / Virus Database: 269.14.12 - Release Date: 15/10/2007 00:00
| DATE: | << | >> | THREAD: | << | >> | INDEX: | Main | Thread |
|---|
- Previous by Date: RE: Scripting - Sorting a Collection
- Next by Date: RE: Scripting - Sorting a Collection
- Previous by Thread: RE: Scripting - Sorting a Collection
- Next by Thread: RE: Scripting - Sorting a Collection
- Index(es):
| Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available. |