<html><head><style> body {height: 100%; color:#000000; font-size:12pt; font-family:Times New Roman;}</style></head><body>Hi Seb,&nbsp;<br>&nbsp; &nbsp;Thank you for your reply.<br>&nbsp; &nbsp;I'm sorry that I don't quite understand your instructions. I'm really new to ParaView.<br>&nbsp; &nbsp;With my little knowledge in ParaView, I'll try to understand as follow :&nbsp;<br>&nbsp; &nbsp;- First, I have to write my .xml file with a tab that have "function" declaration? So how to declare these values cause I don't understand the exemples in the *.xml file (filters, writers; etc.)<br>&nbsp; &nbsp;- And then by the declaration as your instructions about information_only yesterday?<br><span>&nbsp;</span><br>&nbsp; &nbsp;Can you be a little more&nbsp;explicit? What is ROI?<br>&nbsp; &nbsp;<br>&nbsp; &nbsp;Thank you very much for your kindness.<br><br><span>&nbsp;</span><br>&nbsp;&nbsp;<br>----- Original Message -----<br>From: Sebastien Jourdain &lt;sebastien.jourdain@kitware.com&gt;<br>To: Tuan Ha Tran &lt;tuan-ha.tran@insa-lyon.fr&gt;<br>Cc: paraview@paraview.org, paraview-developers@paraview.org<br>Sent: Thu, 07 Jun 2012 01:28:38 +0200 (CEST)<br>Subject: Re: [Paraview] Write xml for ParaView Plugin<br><br>You should do that in two step.<br><br>On property on your proxy where you set the ROI.<br>And one information property where you calculate...<br><br>Seb<br><br>On Wed, Jun 6, 2012 at 11:17 AM, Tuan Ha Tran <tuan-ha.tran@insa-lyon.fr> wrote:<br>&gt; Hi everybody,<br>&gt; I'm writing some .xml ServerManager file for a ParaView Plugin.<br>&gt; Our class have a function likes this :<br>&gt; double calculate(vtkImagedata* voi) that return a double value calculated<br>&gt; from the vtkImageData.<br>&gt;<br>&gt; I loaded the plugin into Paraview. I use the Python Shell and when I call<br>&gt; myReturnedValue = MyFilter.calculate(proxy) (proxy is a vtkImageData type),<br>&gt; I always have the following error : AttributeError : 'function' object has<br>&gt; no attribute 'calculate'<br>&gt;<br>&gt; I searched in the filters.xml and found something mention about function. I<br>&gt; wonder if we can use these descriptions to access to the function (this<br>&gt; function is nothing similar to any vtk function, don't override any of<br>&gt; them). I think that I have to add something like 'function = calculate' so<br>&gt; that the function is recognized in ParaView as well as Python but I can't<br>&gt; find any exemple.<br>&gt;<br>&gt; Do you have any idea? Thank you in advance.<br>&gt;<br>&gt; _______________________________________________<br>&gt; Powered by www.kitware.com<br>&gt;<br>&gt; Visit other Kitware open-source projects at<br>&gt; http://www.kitware.com/opensource/opensource.html<br>&gt;<br>&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>&gt; http://paraview.org/Wiki/ParaView<br>&gt;<br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; http://www.paraview.org/mailman/listinfo/paraview<br>&gt;<br><br></tuan-ha.tran@insa-lyon.fr></body></html>