[Paraview] can't do stereo animation output in batch mode
Ryan Abernathey
ryan.abernathey at gmail.com
Fri Oct 30 15:38:03 EDT 2015
I am trying to output an animation using batch mode in stereo. I want to
output one set of images for the left eye and one for the right eye. In my
script, I tried to do this by setting view.StereoType = "Left" or "Right".
However, this doesn't work; both produce identical output.
Can you give me some advice? Script is below. I am executing this with
pvbatch.
import os
paraview.simple._DisableFirstRenderCameraReset()
state_dir = '/scratch/Paraview/hurricane/long_hourly_rotating/try4'
fname = 'filter_pre_render.pvsm'
st = 'left'
# or
# st = 'right'
servermanager.LoadState(os.path.join(state_dir, fname))
outdir =
'/scratch/Paraview/hurricane/long_hourly_rotating/output/top_view/' + st
view = GetRenderView()
view.ViewSize = [1920, 1080]
view.StereoType = st.capitalize()
SetActiveView(view)
Render()
WriteAnimation(os.path.join(outdir, 'top_view_%s.png' % st))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20151030/81bc9848/attachment.html>
More information about the ParaView
mailing list