Set the center and radius of Point Source streamtracer through the python shell

Hi!
I’m working with a big dataset of similar geometries and I would like to auotmatically set the Point source streamlines on the same positions automatically, through a tracer. I would like to know if it is possible to set the center and radius of the Streamtracer through the python shell. I have been looking at all the documentation about the streamtracer function but so far I can only change these parameters through the GUI interface.

Thanks befoerhand!!

The following python code is the basic idea:

streamTracer1 = GetActiveSource()
streamTracer1.SeedType = 'Point Source'
streamTracer1.SeedType.Center = [1.1, 1.5, 2.1]
streamTracer1.SeedType.Radius = 3.5

Of course, change the numbers to your desired center and radius.

2 Likes

Thank you very much for your fast reply!! It works as intended.