<div dir="ltr"><div><div>I'll see if I can find an example online. In the meantime, another option would be to pass in all arrays and then use the Pass Arrays filter to select the ones you want. If you're using VTK's zero-copy functionality for the vtkDataArrays this should be a very efficient way to do what you want.<br><br></div>Best,<br></div>Andy<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 18, 2016 at 4:33 AM, Luigi Calori <span dir="ltr"><<a href="mailto:l.calori@cineca.it" target="_blank">l.calori@cineca.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>Thank's for the prompt replay, we do
      not mind custom code the scripts, It would be good to have usage
      code examples<br>
      or pointers to open source projects that are using Catalyst in
      such a way.<br>
      <br>
      Any hints will be really appreciated.<br>
      <br>
      Best regards<span class="HOEnZb"><font color="#888888"><br>
      Luigi</font></span><div><div class="h5"><br>
      <br>
      <br>
      <br>
      On 18/08/2016 03:23, Andy Bauer wrote:<br>
    </div></div></div><div><div class="h5">
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>Hi,<br>
              <br>
            </div>
            This is possible but at this point requires custom coding
            the Python script to specify which fields are needed. This
            should be done during the RequestDataDescription() call. You
            can use vtkCPInputDataDescription's IsFieldNeeded() and
            IsFieldPointData() methods to specify what's needed in the
            Python script and then create the requested VTK data arrays
            in the adaptor after that. There are plans to allow the GUI
            script generation to specify which data arrays are needed
            but no concrete date (likely over a year unless there's
            significant support for the development effort) for when
            that functionality will be available. <br>
            <br>
          </div>
          Cheers,<br>
        </div>
        Andy<br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Aug 17, 2016 at 3:07 PM, Luigi
          Calori <span dir="ltr"><<a href="mailto:l.calori@cineca.it" target="_blank">l.calori@cineca.it</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi
            everybody: we are starting instrumenting one Fortran
            simulation code with Paraview catalyst.<br>
            We have started from the fortran full example as our grid is
            basically a 3d rectilinear grid that we are currently<br>
            handling like imagedata.<br>
            Our code has a quite high number of scalar fields ( 50 ) and
            a single velocity field.<br>
            If we use a single input and a single data producer with all
            the field inside, the Paraview client slows down, probably
            due to memory usage or transfer.<br>
            For visualization we would just need the vector field and
            one or two of the scalar fields.<br>
            It would really good to be able to dinamically ( possibly
            each time step) being able to select which of the available
            scalar variable pass as scalar field.<br>
            In the examples the c++ adaptor code add fields in a fixed
            way. We would like to pass information from python ( and
            maybe from Paraview GUI ) to the adaptor code to dynamically
            change it's behaviour.<br>
            <br>
            Is it at all possible? any hints or better example code.<br>
            <br>
            Sorry if dumb question, I' m a newbie in this<br>
            <br>
            Thanks in advance.<br>
            <br>
            -- <br>
            Luigi Calori<br>
            SuperComputing Applications and Innovation Department<br>
            CINECA - via Magnanelli, 6/3, 40033 Casalecchio di Reno
            (Bologna) - ITALY<br>
            Tel: <a href="tel:%2B39%20051%206171509" value="+390516171509" target="_blank">+39 051 6171509</a>  Fax: <a href="tel:%2B39%20051%206132198" value="+390516132198" target="_blank">+39 051 6132198</a><br>
            <a href="http://hpc.cineca.it" rel="noreferrer" target="_blank">hpc.cineca.it</a><br>
            <br>
            ______________________________<wbr>_________________<br>
            Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
            <br>
            Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
            <br>
            Please keep messages on-topic and check the ParaView Wiki
            at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaV<wbr>iew</a><br>
            <br>
            Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
            <br>
            Follow this link to subscribe/unsubscribe:<br>
            <a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/paraview</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <br>
    <pre cols="72">-- 
Luigi Calori
SuperComputing Applications and Innovation Department 
CINECA - via Magnanelli, 6/3, 40033 Casalecchio di Reno (Bologna) - ITALY
Tel: <a href="tel:%2B39%20051%206171509" value="+390516171509" target="_blank">+39 051 6171509</a>  Fax: <a href="tel:%2B39%20051%206132198" value="+390516132198" target="_blank">+39 051 6132198</a>
<a href="http://hpc.cineca.it" target="_blank">hpc.cineca.it</a>
</pre>
  </div></div></div>

<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/<wbr>ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>