[Paraview] Getting Python object reference to representation/proxy of each object loaded in Paraview.
Deij, Menno
M.Deij at marin.nl
Mon Feb 27 07:59:44 EST 2012
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:M.Deij at marin.nl
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: paraview-bounces at paraview.org [mailto:paraview-bounces at paraview.org] On Behalf Of Olumide
Sent: Monday, February 27, 2012 1:47 PM
To: paraview at paraview.org
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
More information about the ParaView
mailing list