Hi Sebastien,

Thank you for your recommendations.
I have already been through all those resources and I was not able to extract 
very much useful information from them. The the 'trace' suggestion seems 
promising. I can't quite get it to do what I want, but I'm sure it'll prove 
useful in the future.

This is what using the trace gave me:
--------------------------------------------------------------------------------------------------------
try: paraview.simple
except: from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()

a3dResults_vtu = XMLUnstructuredGridReader( 
FileName=['/home/stefano/workspace/TestSimulations/3dpropagation/output/vtk_output/3dResults.vtu']
 )
a3dResults_vtu.PointArrayStatus = ['V_000000', 'V_000001', 'V_000002', 
'V_000003', 'V_000004', 'V_000005']

# From here, I don't even know how to do what I want to do manually
# At this point if I am in Paraview and I hit 'Animate' then it will animate 
V_00000 only. But, in fact, V_000000 is timestep 0 of V, V_000001 is timestep 1 
of V, etc...
# So I essentially want it to either interpret the arrays as such or output a 
series of vtu files which I can then hopefully open 'together' (output*.vtu) 
and animate that...?
--------------------------------------------------------------------------------------------------------


Also. I would still like to know where I can look up the functionality of, for 
example, paraview.simple, for the future.

Stefano

________________________________________
From: Sebastien Jourdain [[email protected]]
Sent: Friday, 2 March 2012 12:03 PM
To: Stefano Charissis
Cc: [email protected]
Subject: Re: [Paraview] ParaView Scripting

Hi Stefano,

you can give a look at http://paraview.org/Wiki/ParaView and more precisely on:

http://paraview.org/Wiki/ParaView#Python_Scripting
http://paraview.org/Wiki/ParaView/Python_Scripting
http://paraview.org/Wiki/Python_GUI_Tools

Hope this could give you more insight... The trace can help you
convert UI interaction into script which can be manually tweaked for
your custom purpose.

Seb

On Thu, Mar 1, 2012 at 7:09 PM, Stefano Charissis
<[email protected]> wrote:
> Hi all,
>
> My group has just started using ParaView in an attempt to visualise the 
> output of an open-source application we are using. The app outputs a single 
> .vtu file which has multiple arrays, each representing the data at every time 
> step of the simulation. I cannot animate this as it does not have any time 
> information. I could not find the solution online and nor could I find any 
> documentation for the python scripting. I tried that figuring that if I could 
> seperate the vtu into multiple (ie. 0.vtu, 1.vtu, etc) then I could 
> automatically produce animations.
> Does anyone know how this can be achieved?
>
> And, more generally, how can one go about learning ParaView scripting? I 
> don't mind what language I have to use, I just want a comprehensive guide and 
> documentation. I tried buying the book, but it is out of stock.
>
> Thanks,
> Stefano
>
> ______________________________________________________________________
> The Victor Chang Cardiac Research Institute's Email is scanned by the 
> MessageLabs Email Security System.
> _______________________________________________
> 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

Scanned by Messagelabs ***

______________________________________________________________________
The Victor Chang Cardiac Research Institute's Email is scanned by the 
MessageLabs Email Security System.
_______________________________________________
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

Reply via email to