Actually, a careful reading of the Streakline documentation reveals a very useful trick. I just learned this last week myself.
You do NOT have to send a series object to 'data'. You only have to send a field but it must have a 'series position' attribute. Presumably, you would be getting successive fields from a logical (if not actual) series, and Streakline is happy to be fooled into believing this is a continuous vector field by that attribute.

So you have your field separated out, and presumably know the current index or whatever from Sequencer. Just add an Options module below Replace and add the attribute 'series position' and the value such as the current sequencer index or whatever other monotonically increasing scalar you like.

Then feed this field into Streakline. Play the Sequencer to feed successive fields and watch the Streakline evolve. Works for me!


For future reference, you must use Append, not CollectSeries to build a series from individual members.



On Thursday, Nov 4, 2004, at 09:49 America/New_York, Emmanuelle Lafont wrote:

Hi,


I want to use the Streakline module, so I have to send a serie to its
first input.
I effectively have a serie in the beginning, but I must change the
position member of this serie with the Replace Module.However, Replace wants a field in input. So I've placed a Select module
before Replace, and I use a ForEachN to work on every field of the serie.My problem is that I must regoup the fields in a new serie after Replace
in order to pass it to the Streakline module.I use a CollectSeries module combined with GetLocal/SetLocal. In the
'position' attribute, I send the 'current' output of ForEachN.But it doesn't work, this new serie contains only one field.
I think it's maybe easier in script mode, but I don't really know it.

Here is the part of my program:

current, last = ForEachN(1,n,1);
Select (input=my_serie,which=current);
Replace (srcfield=my_computation,dstfield=Select);
GetLocal (initial=Replace);
CollectSeries (object=GetLocal,position=current);
SetLocal (object=CollectSeries,link=GetLocal);
Streakline (data=CollectSeries,...);


Thanks a lot for any help.


-----------------
Emmanuelle Lafont
NUMTECH
6 allée Allan Turing
BP 30242
63175 AUBIERE Cedex


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

Reply via email to