[Paraview] Python view

Cory Quammen cory.quammen at kitware.com
Tue Apr 14 09:09:07 EDT 2015


Hi Ian,

I'm glad to hear you are interested in the Python View.

I want to try out the python view for the first time, but I am not getting
> anywhere. I have created a python view and defined the functions setup_data
> and render. I tried the example script from the Kitware Blog (
> http://www.kitware.com/blog/home/post/588), and I do get the memory size
> in the output messages, but the python view stays all black (no plot, no
> axes, nothing). Am I just missing something?
> I am using ParaView 4.3.1 64-bit Windows binaries.
>

Did you copy and paste the script examples into the "Script" window, or did
you load the example state file on the blog? I suggest loading the state
file because the script examples in the blog post are missing some imports
that are needed. The state file has the complete script - I just confirmed
that it works on the 4.3.1 64-bit Windows binaries. You will have to point
ParaView to the bluntfin.vts file when you load the state file, which you
can download from

http://www.paraview.org/gitweb?p=ParaViewData.git;a=blob_plain;f=Data/bluntfin.vts;hb=1fa9dce1c623e2d467c44b5337ba3a8378a6a537

>
> Besides, I find it a little confusing, that I do not really know, when the
> script is executed. What about something like an 'Apply' button?
>

The Script is an auto-update property of the Python View. As such, it is
executed any time the view needs to re-render. This includes any time you
edit the script and then click elsewhere in the GUI, resize the ParaView
window, etc. It should work to click on the Python View after you have
edited the script - think of it as a big Apply button :-)

Thanks,
Cory


>
> Kind regards
> Ian
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>



-- 
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150414/13d5d894/attachment.html>


More information about the ParaView mailing list