Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 Tools -> Start trace 生成了 Paraview python 脚本。这记录了我使用 Paraview GUI 执行的一组步骤。
我可以使用工具 - > Python Shell从GUI很好地运行这个脚本
但是,如果我尝试使用从命令行运行脚本
pvpython my_script.py
脚本运行并退出,但没有打开任何 GUI。
[编辑] - 答案:
我应该用
paraview --script=./my_script.py
而不是 pvpython
生成的脚本默认不包含任何渲染。看看脚本末尾,有注释的渲染代码可以取消注释。我建议如下:
RenderAllViews()