I created a VTKPythonAlgorithmBase source for ParaView. Within the constructor the return object _mp
of createMachine()
is stored as attribute.
@smproxy.source( name="dtOOReaderName", label="dtOOReaderLabel" )
class dtOOReader(VTKPythonAlgorithmBase):
def __init__(self):
VTKPythonAlgorithmBase.__init__(self,
nInputPorts=0,
nOutputPorts=1,
outputType='vtkPolyData'
)
self.mp_ = createMachine()
[...]
Is there any way to get a reference to my source class within the Python shell of ParaView? I would like to have access to my attribute mp_
within the shell. I already figured out that I can access the sources like this:
>>> from paraview.simple import *
>>> type(GetSources()[('dtOOReaderLabel1', '9414')])
<class 'paraview.servermanager.dtOOReaderLabel'>
But this object is not my original one. I guess this is kind of a proxy.
Thanks in advance.
Alex