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

Vincent Faucher vincent.faucher at cea.fr
Tue Jun 28 05:16:27 EDT 2011


And it works. Thanks a lot for the reactivity. Vincent

Le 28/06/2011 10:28, Vincent Faucher a écrit :
> Thanks for this help. I try this right away. Regards, Vincent
>
> Le 27/06/2011 19:42, pat marion a écrit :
>> 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 <mailto: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 <tel:%2B33.1.69.08.40.18>
>>
>>     vincent.faucher at cea.fr <mailto: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 <http://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
>>
>>
>
> -- 
>
> *//**//*
>
> 	
>
> **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 <mailto: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.
>

-- 

*//**//*

	

**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 <mailto: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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110628/17fc4e5d/attachment-0001.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/20110628/17fc4e5d/attachment-0003.bin>
-------------- 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/20110628/17fc4e5d/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .Logo_CEA.bmp
Type: image/bmp
Size: 12402 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110628/17fc4e5d/attachment-0005.bin>


More information about the ParaView mailing list