<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hi Cory,</p>
    <p>thanks for that hint on the pvpyfilter. This tool is awesome and
      does exactly what I need it to do.</p>
    <p>Cheers,<br>
      Arno<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 18/04/18 15:21, Cory Quammen wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAB5Fpx7a6TptiME6ukqnYTwDNLyry2EKanhAPYsGmNg3N_CMFA@mail.gmail.com">
      <div dir="ltr">
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Wed, Apr 18, 2018 at 8:21 AM,
            David E DeMarle <span dir="ltr"><<a
                href="mailto:dave.demarle@kitware.com" target="_blank"
                moz-do-not-send="true">dave.demarle@kitware.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div dir="ltr">good news:
                <div>programmable source/filter has a property called
                  Parameters that lets you pass in arbitrary values.
                  <div>See an example of its use in the standard
                    benchmark here: <a
href="https://gitlab.kitware.com/paraview/paraview/blob/master/Wrapping/Python/paraview/benchmark/manyspheres.py#L168"
                      target="_blank" moz-do-not-send="true">https://gitlab.kitware.com/par<wbr>aview/paraview/blob/master/Wra<wbr>pping/Python/paraview/benchmar<wbr>k/manyspheres.py#L168</a></div>
                  <div><br>
                  </div>
                  <div>bad news:</div>
                  <div>To my knowledge we have never exposed that
                    property to the end user in the Qt parts of the GUI.
                    If someone can provide a good example of a qt plugin
                    or otherwise that exposes parameters to the end
                    user, please advise on this thread.</div>
                </div>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>You can do what is described in this blog post to
              package your programmable source nicely with modifiable
              attributes. See <a
href="https://blog.kitware.com/easy-customization-of-the-paraview-python-programmable-filter-property-panel/"
                target="_blank" moz-do-not-send="true">https://blog.kitware.com/e<wbr>asy-customization-of-the-parav<wbr>iew-python-programmable-filter<wbr>-property-panel/</a>
              for details (it is 5 years old, but still applicable to
              ParaView 5.5).</div>
            <div><br>
            </div>
            <div>You may also be interested in this project by Shuhao Wu
              on GitHub: <a
                href="https://github.com/shuhaowu/pvpyfilter"
                target="_blank" moz-do-not-send="true">https://github.com/<wbr>shuhaowu/pvpyfilter</a>.
              I haven't used it yet, but it looks handy.</div>
            <div><br>
            </div>
            <div>Thanks,</div>
            <div>Cory</div>
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div dir="ltr">
                <div class="gmail_extra"><br clear="all">
                  <div>
                    <div
class="m_-2984645817526359749gmail-m_4782343191270343822gmail-m_-1672282564222874684m_6982375072491987133gmail_signature">
                      <div dir="ltr">
                        <div>
                          <div dir="ltr">
                            <div>David E DeMarle<br>
                              Kitware, Inc.<br>
                              Principal Engineer<br>
                              21 Corporate Drive<br>
                              Clifton Park, NY 12065-8662<br>
                              Phone: 518-881-4909</div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                  <br>
                  <div class="gmail_quote">
                    <div>
                      <div
                        class="m_-2984645817526359749gmail-m_4782343191270343822gmail-h5">On
                        Wed, Apr 18, 2018 at 4:41 AM, Arno Mayrhofer <span
                          dir="ltr"><<a
                            href="mailto:arno.mayrhofer@dcs-computing.com"
                            target="_blank" moz-do-not-send="true">arno.mayrhofer@dcs-computing.<wbr>com</a>></span>
                        wrote:<br>
                      </div>
                    </div>
                    <blockquote class="gmail_quote" style="margin:0px
                      0px 0px 0.8ex;border-left:1px solid
                      rgb(204,204,204);padding-left:1ex">
                      <div>
                        <div
                          class="m_-2984645817526359749gmail-m_4782343191270343822gmail-h5">
                          <div bgcolor="#FFFFFF"> Hi all,
                            <p>I have made a small Programmable Filter
                              that converts my input data. Now I have
                              one parameter (resolution) that I would
                              like to be modifiable by the user. My
                              script currently looks as follows:</p>
                            <pre style="margin:0px;text-indent:0px"><span style="font-family:monospace">resolution = 20
val </span><span style="font-family:monospace;color:rgb(102,102,102)">=</span><span style="font-family:monospace"> {</span><span style="font-family:monospace;color:rgb(186,33,33)">'resolution'</span><span style="font-family:monospace">: resolution, </span><span style="font-family:monospace;color:rgb(186,33,33)">'self'</span><span style="font-family:monospace">: </span><span style="font-family:monospace;color:rgb(0,128,0)">self</span><span style="font-family:monospace">}</span></pre>
                            <pre style="margin:0px 0px 12px;text-indent:0px"><span style="font-family:monospace;color:rgb(0,128,0)">execfile</span><span style="font-family:monospace">(</span><span style="font-family:monospace;color:rgb(186,33,33)">'/path/to/filter.py'</span><span style="font-family:monospace">, val)

</span><span style="font-family:monospace"></span>
</pre>
                            Ideally I want my users to not have to
                            replace the 20 by whatever value they
                            desire, but instead make a Custom Filter
                            with either a text input field or a slider
                            that will pipe its value to the Programmable
                            Filter. Is something like this possible at
                            all?<br>
                            <br>
                            Thanks in advance for your help,<br>
                            Arno<br>
                            <pre style="margin:0px 0px 12px;text-indent:0px"><span style="font-family:monospace"></span></pre>
                          </div>
                          <br>
                        </div>
                      </div>
                      ______________________________<wbr>_________________<br>
                      Powered by <a href="http://www.kitware.com"
                        rel="noreferrer" target="_blank"
                        moz-do-not-send="true">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"
                        moz-do-not-send="true">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"
                        moz-do-not-send="true">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"
                        moz-do-not-send="true">http://markmail.org/search/?q=<wbr>ParaView</a><br>
                      <br>
                      Follow this link to subscribe/unsubscribe:<br>
                      <a
                        href="https://public.kitware.com/mailman/listinfo/paraview"
                        rel="noreferrer" target="_blank"
                        moz-do-not-send="true">https://public.kitware.com/mai<wbr>lman/listinfo/paraview</a><br>
                      <br>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
              <br>
              ______________________________<wbr>_________________<br>
              Powered by <a href="http://www.kitware.com"
                rel="noreferrer" target="_blank" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">http://markmail.org/search/?q=<wbr>ParaView</a><br>
              <br>
              Follow this link to subscribe/unsubscribe:<br>
              <a
                href="https://public.kitware.com/mailman/listinfo/paraview"
                rel="noreferrer" target="_blank" moz-do-not-send="true">https://public.kitware.com/mai<wbr>lman/listinfo/paraview</a><br>
              <br>
            </blockquote>
          </div>
          <br>
          <br clear="all">
          <div><br>
          </div>
          -- <br>
          <div
            class="m_-2984645817526359749gmail-m_4782343191270343822gmail_signature">Cory
            Quammen<br>
            Staff R&D Engineer<br>
            Kitware, Inc.</div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>