[Paraview] can't do stereo animation output in batch mode
Ryan Abernathey
ryan.abernathey at gmail.com
Fri Nov 6 08:58:30 EST 2015
Any thoughts on this issue?
Has anyone else successfully output stereo images from pvbatch?
On Fri, Oct 30, 2015 at 3:38 PM, Ryan Abernathey <ryan.abernathey at gmail.com>
wrote:
> 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/20151106/5ac3d136/attachment.html>
More information about the ParaView
mailing list