[Paraview] Save 2 views as animations/images in same layout

Madalena S. Malhadas nenasantos at hotmail.com
Mon Mar 2 11:29:02 EST 2015


I use the PV 4.3.
There is no reason to write a new script, it was a result from testing suggestions regarded in the samples provided in the menu.
Can you provide me the correct code to test in my computer/PV version?
Madalena

Date: Mon, 2 Mar 2015 17:25:32 +0100
From: stephen.wornom at inria.fr
To: nenasantos at hotmail.com
CC: niklas.karcher at dlr.de; paraview at paraview.org
Subject: Re: [Paraview] Save 2 views as animations/images  in same layout


  
    
  
  
    Madalena S. Malhadas wrote:

    
    
      
      

        Dear all,
        I have a script that animate two views in same layout. The
          Scritp run fine, but apears to have a problem saving one
          single image formed by the 2 views.
        

        
        I made a simple test by running the trace in paraview,
          creating and saving to views. Follow the example below and the
          output attached. The example compose the 2 views but produces
          also a black square in corner. Any one know to solve the
          problem?
        

        
        Kind regards
      
    
    I have done this with PV 4.1. Split the screen and organize the two
    views,click on the animate icon, unclick "save selected view" ,

    should work.

    

    Is there a reason why you write a new script?

    Stephen

    
      
        

        
        --------------------------------------------------script
example-------------------------------------------------------------------
        

        
        
          # get active view
          renderView1 = GetActiveViewOrCreate('RenderView')
          

          
          # get layout
          viewLayout1 = GetLayout()
          

          
          # split cell
          viewLayout1.SplitVertical(0, 0.5)
          

          
          # Create a new 'Render View'
          renderView2 = CreateView('RenderView')
          renderView2.ViewSize = [1156, 383]
          renderView2.StereoType = 0
          renderView2.Background = [0.32, 0.34, 0.43]
          

          
          renderView1 = GetRenderView()
          renderView2 = GetRenderViews()[1]
          

          
          # current camera placement for renderView1
          

          
          # current camera placement for renderView2
          

          
          # current camera placement for renderView2
          

          
          

          
          SaveAnimation
            ('C:/Users/madalenasantos/Desktop/Paraview/Teste.jpg',
            layout=viewLayout1)
          

          
          -------------------------------------------------------------------------------------------------------------------------------------------
          

          
        
      
      

      
      

      _______________________________________________
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

    
    

    

    -- 
stephen.wornom at inria.fr
2004 route des lucioles - BP93
Sophia Antipolis
06902 CEDEX
		
Tel: 04 92 38 50 54
Fax: 04 97 15 53 51
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150302/059f14f5/attachment.html>


More information about the ParaView mailing list