[Paraview] Getting Python commands from the trace module (or other)

Bob Flandard flandard at hotmail.com
Fri Jul 26 17:36:16 EDT 2013


Hello,

I'm using the lastest nightly build of ParaView 4.0.1 Windows 64bit on Windows 7.
I'm try to develop a Python macro that will allow me to setup the scalar bar after applying some other filters to the pipeline. I'm trying to establish the required Python commands by turning on the trace feature, changing things in the GUI (specifically: Color Scale Editor - Interpret values as Categories - Color Legend Tab, change font size, tick flip labels, tick show NaN, label as "texty foos"), and then stop trace. I'm starting and stoping the trace directly in the Python Shell using:

from paraview import smtrace
smtrace.start_trace(CaptureAllProperties=True)
# Do stuff in GUI
smtrace.stop_trace()
smtrace.print_trace()

However the results is always:

try: paraview.simple
except: from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()


Render()
But none of the commands for fonts, text, NaN etc are there.
I've tried many variants of dir() and help() for various combinations of objects, but have had no success and have spent far too long on something that should be trivial.

Any help greatly appreciated.

Thanks, Bob

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130726/2b07fd08/attachment.htm>


More information about the ParaView mailing list