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.

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to