[Paraview] Getting Python object reference to representation/proxy of each object loaded in Paraview.

Olumide 50295 at web.de
Mon Feb 27 09:26:49 EST 2012


On 27/02/2012 12:59, Deij, Menno wrote:
> I'd do something like this:
>
> view = GetRenderView()
>
> for angle in range(0,360,10):
>          for rep in view.Representations:
>                  rep.Orientation = [angle,0,0] #rotate to your liking
>                  view.StillRender()
>                  view.WriteImage('image'+str(angle)+'.png', 'vtkPNGWriter', 1)
>

Thanks Menno. However I'm trying to rotate the objects in the scene and 
not the camera. I've got two objects side by side and I'd like to rotate 
both of them while keeping the camera still.

Thanks.



More information about the ParaView mailing list