On 22/02/16 17:27, Grothausmann, Roman Dr. wrote:
I'm trying to write a simple pvpython script that merely takes a screen shot of
a loaded PVSM:
https://github.com/romangrothausmann/ParaView_scripts/blob/master/render-view.py

However, even if a voxel dataset is displayed as a volume when loaded in PV GUI,
it does not get rendered by the script.

Solved the problem by merely using paraview.simple.LoadState instead of paraview.servermanager.LoadState (as used in the examples: http://www.paraview.org/Wiki/ParaView/Python/Loading_and_saving_state):

https://github.com/romangrothausmann/ParaView_scripts/commit/9c897e34ebf338c709a37e61382e298f9603dc67

This makes me wonder when to use paraview.servermanager.LoadState?
Should the example (http://www.paraview.org/Wiki/ParaView/Python/Loading_and_saving_state) be changed to use paraview.simple.LoadState?

Also, what to do about this warning:
vtkSMProxyIterator (0x61ef820): ProxyManager is not set. Can not perform
operation: Begin()

Still, I cannot get rid of this Warning. Any ideas?

Regards,
Roman


--
Dr. Roman Grothausmann

Tomographie und Digitale Bildverarbeitung
Tomography and Digital Image Analysis

Institut für Funktionelle und Angewandte Anatomie, OE 4120
Medizinische Hochschule Hannover
Carl-Neuberg-Str. 1
D-30625 Hannover

Tel. +49 511 532-2900
_______________________________________________
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

Reply via email to