[prev in list] [next in list] [prev in thread] [next in thread] 

List:       paraview
Subject:    [Paraview] can't do stereo animation output in batch mode
From:       Ryan Abernathey <ryan.abernathey () gmail ! com>
Date:       2015-10-30 19:38:03
Message-ID: CAJAZx5Dr0jHjHAy5uTjkrRrSE+7ftE0wzq0vKL9_PVHDQ3naGQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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))

[Attachment #5 (text/html)]

<div dir="ltr">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 = &quot;Left&quot; or \
&quot;Right&quot;. However, this doesn&#39;t work; both produce identical \
output.<div><br></div><div>Can you give me some advice? Script is below. I am \
executing this with pvbatch.<br><div><br><div><br></div><div><div>import \
os</div><div>paraview.simple._DisableFirstRenderCameraReset()</div><div><br></div><div>state_dir \
= &#39;/scratch/Paraview/hurricane/long_hourly_rotating/try4&#39;<br></div><div>fname \
= &#39;filter_pre_render.pvsm&#39;</div><div>st = &#39;left&#39;</div><div># \
or</div><div># st = &#39;right&#39;</div><div><br></div><div><br></div><div>servermanager.LoadState(os.path.join(state_dir, \
fname))</div><div>outdir = \
&#39;/scratch/Paraview/hurricane/long_hourly_rotating/output/top_view/&#39; + \
st</div><div>view = GetRenderView()</div><div>view.ViewSize = [1920, \
1080]</div><div>view.StereoType = \
st.capitalize()</div><div>SetActiveView(view)</div><div>Render()</div><div>WriteAnimation(os.path.join(outdir, \
&#39;top_view_%s.png&#39; % st))</div></div></div></div></div>



_______________________________________________
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic