Ryan, In case you are still working on this, try adding this line before setting the StereoType
view.StereoRender = 1 view.StereoType = st.capitalize() HTH, Cory On Fri, Nov 6, 2015 at 8:58 AM, Ryan Abernathey <ryan.abernat...@gmail.com> wrote: > 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.abernat...@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)) >> > > > _______________________________________________ > 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 > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview > > -- Cory Quammen R&D Engineer Kitware, Inc.
_______________________________________________ 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 Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview