1)  I'd like to 'query' the geometry data file (which contains the material
assignment by cell) and
     generate a list of all the composition numbers that are used.
2)  Rather than construct the IntegerList manually, I'd like to use the
information from Step 1 to
     automatically create a SelectorList so that I can toggle materials on
or off.


Categorize should find all the unique values in a data component. Lloyd already mentioned what to do with them, though you will probably need to Extract them to feed to SelectorList.

Another handy trick is to use Inquire to ask for member names (and other stuff) that can also be fed as a list to modules that need a list. You may not need that now, but...

Somewhere along the line I wrote a macro called FloatToStringList that iterates over the members of a list and uses Format to convert them then appends them to a new list. You might need something similar since some list inputs don't accept all types of lists and there's no other way I know of to cast float to string.
--
Chris Pelkie
Scientific Visualization Producer
618 Rhodes Hall Cornell Theory Center   Conceptual Reality Presentations, Inc.
Cornell University                      30 W. Meadow Dr.
Ithaca, NY 14853                        Ithaca, NY 14850

Reply via email to