[Paraview] urgent: need python help

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Mon Sep 29 13:18:04 EDT 2014


Josh,

Refer to [1]. You can pass an optional "idx" argument to Fetch to say
which port to fetch from.

>>> data = servermanager.Fetch(reader, idx=1)

[1] http://www.paraview.org/ParaView3/Doc/Nightly/www/py-doc/paraview.servermanager.html#paraview.servermanager.Fetch

On Mon, Sep 29, 2014 at 1:06 PM, Joshua Murphy
<Joshua.Murphy at lasp.colorado.edu> wrote:
> Hi all,
>
> This is fairly urgent, so any good pointers would be greatly appreciated!
>
> I am trying to (still) access the multi-block table in port 1 of my reader from python.  Everything I have tried has returned the vtkSructuredGrid of port 0...
>
> Can someone in the know let me know how I can get at the data in port 1?
>
> I have tried:
>
> port1 = servermanager.OutputPort(reader,1)
> mb = servermanager.Fetch(port1)
>
> I have even tried doing this interactively:
> 1) select port 1 in the gui
> 2) port1 = GetActiveSource()
> 3) mb = servermanager.Fetch(port1)
>
> But It is returning a vtkStructuredGrid object that appears to be the data on Port 0.  Port 1 should be a multiblock dataset with multiple vtkTables within.
>
> again, help would be greatly appreciated!
>
> -Josh
> _______________________________________________
> 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://public.kitware.com/mailman/listinfo/paraview


More information about the ParaView mailing list