<div dir="ltr"><div><div>Hi,<br><br></div>If you edit the coprocessing.py script in the ParaView build/install directory you can do that. <br><br></div>Maybe an easier way though is to just create global variable that is used in your _CreatePipeline() method. An example is:<br>from paraview.simple import *<br>from paraview import coprocessing<br><br>myvalue = 0<br>#--------------------------------------------------------------<br># Code generated from cpstate.py to create the CoProcessor.<br># ParaView 5.1.2-411-gf717569 64 bits<br><br><br># ----------------------- CoProcessor definition -----------------------<br><br>def CreateCoProcessor():<br> def _CreatePipeline(coprocessor, datadescription):<br> class Pipeline:<br> global myvalue<br> print 'myvalue is ', myvalue<br>...<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 20, 2017 at 3:26 AM, Lukáš Kresta <span dir="ltr"><<a href="mailto:lukas.kresta@gmail.com" target="_blank">lukas.kresta@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Is somehow possible to send 3. argument to CreatePipeline or it is fixed to have only 2 arguments?</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>