Hi All,
I would like to change e.g “Edit/ Settings/ Render View/ Advanced/ Line Offset Parameters” for our headless installation on a cluster. Normally I can change such values in the GUI. Python trace does not to record such actions. Hope anyone has an idea.
Thanks and best regards,
Jan
I am one step further, found possible solution described here https://discourse.paraview.org/t/python-access-to-servermanager-generalsettings-and-renderview-settings/1369
However, what I am still missing is, how to list attibute names of the proxy:
ProxyManager helper
pxm = servermanager.ProxyManager()
Custom rendering settings
renderingSettings = pxm.GetProxy(‘settings’, ‘RenderViewSettings’)
for prop in renderingSettings:
print(prop) # lists only the property values, but not names
following line raises an attribute error, as there is no 'ResolveCoincidentTopology ’ attribute.
renderingSettings.ResolveCoincidentTopology = ‘Shift z-buffer when rendering lines and points’
But how do I find the correct attribute names corresponding to the GUI settings?
Best,
Jan
jfavre
(Jean M. Favre)
August 25, 2020, 8:45am
3
please try:
renderingSettings.SetPropertyWithName(“ResolveCoincidentTopology”, “Shift z-buffer when rendering lines and points”)
1 Like
Thanks a lot, Jean! Works as suggested.
And in addition, in case I anyone else encoutners a similar problem:
for above code snippet,
renderingSettings.ListProperties()
returns a list of all properities. Maybe helpfull.
Best regards,
Jan