Generating isosurface from vtk file with python script
I have a vtk file that is generated via auxiliary code and would like to generate isosurfaces of this (3D) data. I can read this in correctly and create the necessary isosurfaces manually, and can even do the same with the python shell when the gui is up by doing the following:
Code:
import paraview.simple as ps The closest solution to this can be found here: https://colorsfordirectors.wordpress...ython-scripts/ Code:
# 1. import the paraview.simple module (here renammed 'pvs') I will test this out on another paraview installation / linux distribution tomorrow when I get back into the office. I am currently running Arch and paraview 5.4.1 . If anyone has any advice, I would love to hear it! I'm new to paraview python scripting and am having a bit of trouble figuring everything out. Thanks for reading and any help you can provide! |
You'll probably want something like the following:
Code:
import paraview.simple as ps ParaView has a Python script recorder at "Tools >> Start Trace" and "Tools >> Stop Trace" that you'll find useful (if you weren't using it already). Let me know if you have any problems. |
All times are GMT -4. The time now is 00:35. |