paraview python屏幕中的暗区sh

2024-09-19 23:30:55 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在编写一个python脚本,它在服务器上与pvbatch一起运行。在

它创建一个vtm文件的片段并将其存储为png文件。在

当我直接在服务器上运行脚本时,屏幕截图看起来不错。但是,当我通过ssh远程登录服务器时,屏幕截图看起来很暗: left image: remote, right image: direct

左图像:远程,右图像:直接 我想用以下方法改变照明:

 slice1Display.Specular = 0.0
 slice1Display.Opacity = 1.0

但它不起作用。有什么想法吗?在


Tags: 文件方法图像服务器脚本远程屏幕png
1条回答
网友
1楼 · 发布于 2024-09-19 23:30:55

NVM伙计们,刚找到一个有用的链接:enter link description here

看来我的问题解决了:

RenderView1 = GetRenderView() 

# Turn off "Head Light" 
RenderView1.LightSwitch = 0 

# Turn off "Light Kit" 
RenderView1.UseLight = 0 

r = GetDisplayProperties(slice,RenderView1) 
r.Ambient = 1.0 
r.Diffuse = 0.0

相关问题 更多 >