[Paraview] dynamic variable names in pvython

2013-05-04 Thread Timothy Cale
I use paraview to visualize the results of simulations. I use Trace in the paraview gui, in order to use the generated scripts to help guide the development of the pypython script I use to visualize my simulation results. I would like to use dynamic variable names, and note that the scripts gener

Re: [Paraview] dynamic variable names in pvython

2013-05-05 Thread Pat Marion
Hi Tim, Variable names in trace are generated by this function defined in smtrace.py: def pyvariable_from_proxy_name(proxy_name): return servermanager._make_name_valid(proxy_name.replace(".", "_")) That function will generate a suitable variable name from a proxy name. A proxy is registered

Re: [Paraview] dynamic variable names in pvython

2013-05-05 Thread Timothy Cale
Pat: Thanks. Makes sense, though complicated (for me). Being new to python, pvpython and vtk, I used the append attribute of lists. Do you see a problem with that idea, as shown below? It works, but that is not always the end of the story. (num is the read number of vtu files to be processed):