Re: [Paraview] How to export .x3d files from python script?

2013-10-31 Thread Sebastien Jourdain
Hi Rich, Maybe the active view is not the one that has your rendering. You may need to call SetView(RenderView2). Seb On Wed, Oct 30, 2013 at 6:41 PM, Cook, Rich coo...@llnl.gov wrote: Arrgh! I tried the following and the resulting file did not contain my isosurface as created by the

Re: [Paraview] How to export .x3d files from python script?

2013-10-31 Thread Sebastien Jourdain
All the Proxy/Python informations are stored in the XML files under src/ParaViewCore/ServerManager/SMApplication/Resources/* That's the way I do it... ;-) Seb On Thu, Oct 31, 2013 at 12:33 AM, Sebastien Jourdain sebastien.jourd...@kitware.com wrote: Hi Rich, Maybe the active view is not

Re: [Paraview] State file .py

2013-10-31 Thread Hedieh Ebrahimi
Hi Utkarsh, Thanks, applying this trick, it works now. Thanks for your help. On 30 October 2013 21:46, Utkarsh Ayachit utkarsh.ayac...@kitware.comwrote: Try removing the check at the top i.e replace --- try: paraview.simple except: from paraview.simple import * __ with from

[Paraview] record steps to a script so that it can be played back later

2013-10-31 Thread Pei-Ying Hsieh
Dear paraview experts, Is it possible to record the steps, including rotating the domain using the mouse, and then, save it to a file so that it can be played back in another case? Pei-ying Sent from Yahoo Mail on Android ___ Powered by

Re: [Paraview] [EXTERNAL] horrible slow performance -- I must be doing something very wrong

2013-10-31 Thread Berk Geveci
Hi Rich, I suspect that this is a software rendering issue (Mesa). That's ~ 1.5M quads so I am still surprised that it is slow with 4 MPI ranks but I guess that's Mesa's performance on that machine. The simplest test is to use the sphere source with MPI rank and adjust the number of triangles to

Re: [Paraview] [EXTERNAL] record steps to a script so that it can be played back later

2013-10-31 Thread Moreland, Kenneth
1. Tools - Start Trace 2. Do steps 3. Tools - Stop Trace -Ken From: Pei-Ying Hsieh phsieh2...@yahoo.commailto:phsieh2...@yahoo.com Date: Thursday, October 31, 2013 5:20 AM To: paraview paraview@paraview.orgmailto:paraview@paraview.org Subject: [EXTERNAL] [Paraview] record steps to a script so

Re: [Paraview] How to export .x3d files from python script?

2013-10-31 Thread Cook, Rich
Good tip On Oct 30, 2013, at 11:36 PM, Sebastien Jourdain sebastien.jourd...@kitware.commailto:sebastien.jourd...@kitware.com wrote: All the Proxy/Python informations are stored in the XML files under src/ParaViewCore/ServerManager/SMApplication/Resources/* That's the way I do it... ;-) Seb

Re: [Paraview] How to export .x3d files from python script?

2013-10-31 Thread Cook, Rich
SetView(RenderView2) Traceback (most recent call last): File console, line 1, in module NameError: name 'SetView' is not defined On Oct 30, 2013, at 11:33 PM, Sebastien Jourdain sebastien.jourd...@kitware.commailto:sebastien.jourd...@kitware.com wrote: Hi Rich, Maybe the active view is not

Re: [Paraview] How to export .x3d files from python script?

2013-10-31 Thread Cook, Rich
Oops, sorry about that. So when I called x3dExporter.SetView(RenderView2) x3dExporter.Write() the viewport turned green! It looks like this means that the exporter's view is its output in some sense. I need to plumb things up so the view goes into the exporter and out comes an x3dExporter. On

Re: [Paraview] How to export .x3d files from python script?

2013-10-31 Thread Sebastien Jourdain
Hum I'm getting confuse. the RenderView2 was the name of the var in your stack trace. It is not a magic command. Seb On Thu, Oct 31, 2013 at 10:27 AM, Cook, Rich coo...@llnl.gov wrote: Oops, sorry about that. So when I called x3dExporter.SetView(RenderView2) x3dExporter.Write() the

Re: [Paraview] [EXTERNAL] record steps to a script so that it can be played back later

2013-10-31 Thread Pei-Ying Hsieh
Hi, Ken, Thanks for the reply!  But, can you give a little more details? After I did stop trace, paraview popped up a window with texts.  It looks like this is python script.  What do I do next?  Do I have this as a python script?  Then, how to use this script to process another case? Sorry

Re: [Paraview] How to export .x3d files from python script?

2013-10-31 Thread Sebastien Jourdain
You should also have said you had a remote server that was doing remote rendering. This is the reason why your x3d is empty. You need to do local rendering in order to get geometry locally so the export will have something to export. Seb On Thu, Oct 31, 2013 at 3:09 PM, Cook, Rich

Re: [Paraview] [EXTERNAL] record steps to a script so that it can be played back later

2013-10-31 Thread Moreland, Kenneth
This is a Python script. It can be executed by the Python interpreter in ParaView. There are a couple ways to do this, but the easiest is to bind the script to a macro. When the script pops up, select File - Save as Macro. Once you save the script as a macro, a button with that name will show

Re: [Paraview] [EXTERNAL] record steps to a script so that it can be played back later

2013-10-31 Thread Pei-Ying Hsieh
Thanks a lot Ken! Pei-ying Sent from Yahoo Mail on Android ___ 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: