>I seem to be having trouble getting the SelectorList module. The following
>is a subset set of my script.
>
>
>ImportSpreadSheet --> extract --> select <-- SelectorList
>
>ImportSpreadSheet = used to import a file with containing a list of filenames
>Extract = column0
>SelectorList = 0 to 11 with each value corresponding to a file
>
>I get the following error when I run the script:
>
> Error: Select. Bad parameter 'which item' must be an integer or integer
>list between 0 and 4
>
>Any ideas as to why I am getting the error message?
>
>Thanks.
>
>Gerry Cheok
Attach a Print("rd") to the output of Extract and view it in Message
Window. It will probably be obvious (to you) what's happening. For whatever
reason, Extract is giving an array with 5 items in it.
If you have column headers in the spreadsheet, be sure you've told ISS
which line (probably 1) the headers are on.
Also, make sure the delimiter is specified correctly (it may be slurping in
everything in the spreadsheet as 5 long lines of stuff instead of n columns
of 12 rows).
Once you get it parsing right, why not just feed the output of Extract to
the input of Selector (not S..List)? Then the menu the user sees on the
Control Panel will show the actual filenames. Of course, there has to be an
output from Selector or the control panel widget will not update. The
leftmost output of Selector will be the 0..11 number and the right hand
side will yield the string filename chosen.
Chris Pelkie
Vice President/Scientific Visualization Producer
Conceptual Reality Presentations, Inc.
30 West Meadow Drive
Ithaca, NY 14850
[EMAIL PROTECTED]
(607) 257-8335 or (607) 254-8794