[Paraview] Python view

Ian Krukow i.krukow at tu-braunschweig.de
Tue Apr 14 16:01:43 EDT 2015


Hi Cory,

thanks a lot! I was missing the import statements. Now it works fine.
And I will remember the big Apply button :-).

Ian



Am 14.04.2015 um 15:09 schrieb Cory Quammen:
> 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
>     <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 <http://www.kitware.com>
>
>     Visit other Kitware open-source projects at
>     http://www.kitware.com/__opensource/opensource.html
>     <http://www.kitware.com/opensource/opensource.html>
>
>     Please keep messages on-topic and check the ParaView Wiki at:
>     http://paraview.org/Wiki/__ParaView <http://paraview.org/Wiki/ParaView>
>
>     Search the list archives at:
>     http://markmail.org/search/?q=__ParaView
>     <http://markmail.org/search/?q=ParaView>
>
>     Follow this link to subscribe/unsubscribe:
>     http://public.kitware.com/__mailman/listinfo/paraview
>     <http://public.kitware.com/mailman/listinfo/paraview>
>
>
>
>
> --
> Cory Quammen
> R&D Engineer
> Kitware, Inc.


More information about the ParaView mailing list