[Paraview] Python WriteImage with PNGWriter and select left or right eye for stereo rendering (Crystal Eyes)

pat marion pat.marion at kitware.com
Mon Jun 27 13:42:07 EDT 2011


Hi Vincent,

Unfortunately python trace does not capture all the screenshot parameters.
However, if you modify your python script you can accomplish this by setting
the view.StereoType property before the call to WriteImage().

Try:

view.StereoType = "Left"
WriteImage("left.png")
view.StereoType = "Right"
WriteImage("right.png")


Also, does your python trace script already contain the code to enable
stereo rendering?

view.StereoRender = 1

Pat

On Mon, Jun 27, 2011 at 12:47 PM, Vincent Faucher <vincent.faucher at cea.fr>wrote:

> **
> Hi,
>
> When using 'Save Screenshot' from the GUI, it is possible to choose between
> left and right eye in stereo mode. When doing this with Python Trace, the
> choice does appear in the trace, resulting in a script producing identical
> images, obviously with no stereo effect.
>
> Does this mean that stereo image output of type "Crystal Eyes" is not
> possible using Python scripting ?
>
> Thanks for the help. Regards, Vincent
> --
>
>   ****
>
> *Vincent FAUCHER*
>
> *Laboratoire d'études de dynamique*
>
> CEA Saclay, DEN/DANS/DM2S/SEMT/DYN
>
> F-91191 GIF SUR YVETTE, FRANCE
>
> Tel : +33.1.69.08.40.18
>
> vincent.faucher at cea.fr
>
>
>
>
>
>
>
> Ce message électronique et tous les fichiers attachés qu'il contient sont
> confidentiels et destinés exclusivement à l'usage de la personne à laquelle
> ils sont adressés. Si vous avez reçu ce message par erreur, merci d'en
> avertir immédiatement son émetteur et de ne pas en conserver de copie.
>
> This e-mail and any files transmitted with it are confidential and intended
> solely for the use of the individual to whom they are addressed. If you have
> received this e-mail in error please inform the sender immediately, without
> keeping any copy thereof.
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110627/1c9b8741/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/bmp
Size: 12402 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110627/1c9b8741/attachment.bin>


More information about the ParaView mailing list