|
[Sponsors] |
November 22, 2017, 06:23 |
Image Paraview with Python
|
#1 |
Senior Member
Join Date: Mar 2016
Location: Bergamo
Posts: 157
Rep Power: 10 |
Hello to all,
my teacher asked me to find a manner to produce a series of images and to automate this procedure because we have to make different test for the colour etc. After a rapid search i (maybe) understand that this could be made by the use of a python script. I initially built Paraview with OpenFOAM but then i noticed this is an incomplete version because it hadn't let to save .pdf image. So i installed a "stand alone" version and now i wan to to produce an image through a python script. I test this one find in the web Code:
from paraview.simple import * simple.Sphere() simple.Show() simple.Render() simple.WriteImage("foo.png") Code:
Traceback (most recent call last): File "ciao.py", line 2, in <module> from paraview.simple import * ImportError: No module named 'paraview' i use python3 What's i'm doing wrong? Thanks for help |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[General] Listing the inputs of a grouped dataset with a programmable python filter in Paraview | NadineHS | ParaView | 3 | December 12, 2021 15:54 |
[OpenFOAM] Paraview from python shell : Glew initialization and VTKcommoncorepython error | pradyumnsingh | ParaView | 0 | September 18, 2018 14:40 |
[General] Loading .stl file with python shell in paraview | New-to-CFD | ParaView | 2 | May 23, 2017 13:31 |
[OpenFOAM.org] OF 2.3.0 compiling Paraview with "-python -mpi" | bender.rodriguez | OpenFOAM Installation | 5 | December 14, 2014 13:27 |
How to get Python Shell into ParaView 3.8.1? | blaise | OpenFOAM Installation | 3 | July 24, 2012 05:58 |