Hi,
If you edit the coprocessing.py script in the ParaView build/install
directory you can do that.
Maybe an easier way though is to just create global variable that is used
in your _CreatePipeline() method. An example is:
from paraview.simple import *
from paraview import coprocessing
myvalue = 0
#--------------------------------------------------------------
# Code generated from cpstate.py to create the CoProcessor.
# ParaView 5.1.2-411-gf717569 64 bits
# ----------------------- CoProcessor definition -----------------------
def CreateCoProcessor():
def _CreatePipeline(coprocessor, datadescription):
class Pipeline:
global myvalue
print 'myvalue is ', myvalue
...
On Mon, Feb 20, 2017 at 3:26 AM, Lukáš Kresta <[email protected]>
wrote:
> Is somehow possible to send 3. argument to CreatePipeline or it is fixed
> to have only 2 arguments?
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
_______________________________________________
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
Search the list archives at: http://markmail.org/search/?q=ParaView
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview