Hi, Please keep the conversations on the mailing list so that all can participate.
The best way currently to pass information back and forth between the adaptor (i.e. C++ code) and the Catalyst pipelines is to use the vtkCPDataDescription's UserData member which is a vtkFieldData object ( http://www.paraview.org/ParaView/Doc/Nightly/www/cxx-doc/classvtkCPDataDescription.html). It is Python wrapped so you can access it in the Python scripts as well. Cheers, Andy On Tue, Feb 21, 2017 at 2:54 AM, Lukáš Kresta <lukas.kre...@gmail.com> wrote: > Thank you. How can I send that argument from adaptor? (I use C++) > > 2017-02-20 16:08 GMT+01:00 Andy Bauer <andy.ba...@kitware.com>: > >> 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.kre...@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 >>> >>> >> >
_______________________________________________ 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