[Paraview] Lighting

Joe Borġ mail at jdborg.com
Fri Aug 24 13:09:59 EDT 2012


I am trying to renders pictures of a geometry in batch.

However, when I play with the following view.BackLightAzimuth and
view.BackLightElevation, the light on the object does not move.

When I do these commands in the pyhton shell and then renders it works.

This is the part of the script where I set up the picture:

view = GetRenderView()
view.CameraParallelProjection = 1
view.CameraPosition = [1.58, 0, 10]
view.CameraFocalPoint = [1.58, 0, 0]
view.CameraViewUp = [0.0, 1.0, 0.0]
view.CameraParallelScale = 1.66
view.CenterAxesVisibility = 0
view.BackLightAzimuth = 0
view.BackLightElevation = 45
view.Background = [1,1,1]
view.ViewSize = [1700, 900]
Render()
WriteImage("test.png")



Regards,
Joseph David Borġ
http://www.jdborg.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120824/2a81b0ac/attachment.htm>


More information about the ParaView mailing list