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)
Good luck!
Best wishes,
Menno
dr. ir. Menno A. Deij
Software Engineer
Maritime Simulation Group
E mailto:[email protected]
T +31 317 49 35 06
MARIN
2, Haagsteeg, P.O. Box 28, 6700 AA Wageningen, The Netherlands
T +31 317 49 39 11, F , I www.marin.nl
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Olumide
Sent: Monday, February 27, 2012 1:47 PM
To: [email protected]
Subject: [Paraview] Getting Python object reference to representation/proxy of
each object loaded in Paraview.
Hi,
I'd like to get the reference to representation or proxy (not sure which
I need) to each object loaded in Paraview via Python.
The big picture: I'd like to rotate each object stepwise about its
vertical axis, turntable style. I'm trying to produce an animation.
Orbiting the camera will merely circle all objects which isn't what I want.
Thanks,
- Olumide
_______________________________________________
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
_______________________________________________
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