Inquire(field, "component names") and pipe output to the stringdata input of a Selector. Be sure to at least Echo the output of Selector to cause it to update when the input changes.

So:

field = Import(filename);
component_list = Inquire(field, "component names");
desired_component_name = Selector(component_list); // pipe Import's output to Selector's 'stringdata' input; normally the only input showing
force_update = Echo(Selector(field,"component names"); // if output is not forced, the Control Panel widget will not update if input changes
selected_component = Select(field, desired_component_name); // take the 'name' output from Selector to the 'which' input of Select

or Extract(field, desired_component_name)
or Mark(field, desired_component_name)

On Monday, Oct 20, 2003, at 03:04 America/New_York, Stéphane Glockner wrote:

ok, I will try, but this solve partially the problem because by advance I don't know the name of the different
components of my field. How is it possible to know the name of the components, to select one in the list and then
to send it to Extract or Mark.
Thanks
S. Glockner

Chris Pelkie wrote:

If you really want to extract pressure, use Extract("pressure"). If you mean to identify pressure as the current data, say for coloring or glyphing, use Mark("pressure)". Select only selects members from a group (which you do not have: you have a field), or a stringlist.

On Wednesday, Oct 15, 2003, at 11:49 America/New_York, Stéphane Glockner wrote:

Hello,

I have change the format of my files from the general binary format to binary native file format
(dx) because I wanted the connections to be inside the files and not calculated.
I am surprised not to be able to extract the different fields (pressure, temperature...). The Import
module is following by Select and Selector ones and I have the following error message :
ERROR: SELECTOR: Bad parameter: object must be a group or string list. I have understood
that Import module take by default the last object of the .dx file. It should contains the different
components
Any help is welcome

Thanks
S. Glockner

PS:



--
Stéphane Glockner
Laboratoire MASTER-ENSCPB
16,avenue Pey Berland
33607 Pessac Cedex
Tel : 05 40 00 66 82 Fax : 05 40 00 66 68
Email : mailto:[EMAIL PROTECTED]



_______________________________
Chris Pelkie
Scientific Visualization Producer
622 Rhodes Hall, Cornell Theory Center
Ithaca, NY 14853

Reply via email to