[Paraview] 3 arguments to _CreatePipeline for Catalyst
Andy Bauer
andy.bauer at kitware.com
Mon Feb 20 10:08:38 EST 2017
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 <lukas.kresta at gmail.com>
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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170220/d3156fb3/attachment.html>
More information about the ParaView
mailing list