<div dir="ltr"><div><div><div><div><div>Hi Tim,<br><br></div>Variable names in trace are generated by this function defined in smtrace.py:<br><br><br>def pyvariable_from_proxy_name(proxy_name):<br> return servermanager._make_name_valid(proxy_name.replace(".", "_"))<br>
<br><br></div>That function will generate a suitable variable name from a proxy name. A proxy is registered with a name in a proxy group. smtrace.py also defines some functions to lookup the proxy name given a proxy and a proxy group. For example:<br>
<br><br>>>> from paraview import smtrace<br>>>> s = Sphere()<br>>>> smtrace.get_source_proxy_registration_name(s)<br>'Sphere1'<br><br>>>> smtrace.pyvariable_from_proxy_name('Sphere1')<br>
'Sphere1'<br><br>>>> help(smtrace.get_source_proxy_registration_name)<br>Help on function get_source_proxy_registration_name in module paraview.smtrace:<br><br>get_source_proxy_registration_name(proxy)<br>
Assuming the given proxy is registered in the group 'sources',<br>lookup the proxy's registration name with the servermanager<br><br><br>>>> help(smtrace.get_view_proxy_registration_name)<br>Help on function get_view_proxy_registration_name in module paraview.smtrace:<br>
<br>get_view_proxy_registration_name(proxy)<br>Assuming the given proxy is registered in the group 'views',<br>lookup the proxy's registration name with the servermanager<br><br><br>Pat</div></div></div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, May 5, 2013 at 3:01 AM, Timothy Cale <span dir="ltr"><<a href="mailto:drtsc.para@gmail.com" target="_blank">drtsc.para@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I use paraview to visualize the results of simulations. <div><br></div><div>I use Trace in the paraview gui, in order to use the generated scripts to help guide </div>
<div>the development of the pypython script I use to visualize my simulation results. </div>
<div><br></div><div>I would like to use dynamic variable names, and note that the scripts generated </div><div>by Trace seem to use dynamic variable names. </div><div><br></div><div>Aside: The driver for this is that the number of meshes I want to display differs </div>
<div>with each simulation.</div><div><br></div><div>I have looked over python posts on dynamic variable names . . . </div><div><br></div><div>Question: How are the (seemingly) dynamic variable names created in/by/during </div>
<div>Trace?</div><div><br></div><div>Regards,</div><div>Tim</div><div><br></div><div>PS: Linux</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>