If you use the python programmable filter, you can create it & set the filter routine (python code) via a python macro on the GUI. If the data you are trying to manipulate on the GUI is small, you could encode it in a string and set it in the body of the python programmable filter.<br>
<br>Pat<br><br><div class="gmail_quote">On Wed, Jun 29, 2011 at 9:49 AM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Nope, moving data from client to server in the way you describe is not<br>
supported in ParaView. For what you are trying to do, you should<br>
really implement a filter (with multiple inputs, if needed) to do the<br>
data-manipulation on the server-side itself.<br>
<font color="#888888"><br>
Utkarsh<br>
</font><div><div></div><div class="h5"><br>
On Wed, Jun 29, 2011 at 5:23 AM, Florian Beck <<a href="mailto:Flo.44@gmx.de">Flo.44@gmx.de</a>> wrote:<br>
> Hi,<br>
><br>
> I want to create a DataObjectGenerator with an unstructered Grid. And when later I want to modify the grid. My try looks as follows:<br>
><br>
><br>
> # create the DataObjectGenerator<br>
> DataObjectGenerator1 = DataObjectGenerator()<br>
> DataObjectGenerator1.Program ='UG1'<br>
><br>
> # read some coord from over objects<br>
> ...<br>
><br>
> # to manipulate the grid fetch it<br>
> mysource = FindSource("DataObjectGenerator1")<br>
> output = servermanger.Fetch(mysource)<br>
> # clean old data<br>
> output.Initialize()<br>
><br>
> # create some points and triangle cells<br>
> pts = pts.vtkPoints()<br>
> ...<br>
> output.SetPoints(pts)<br>
> ...<br>
> pointIds = vtk.vtkIdList()<br>
> ...<br>
> output.InsertNextCell(5,pointIds)<br>
> ...<br>
> # print the ugrid object<br>
> print output<br>
> mysource.UpdatePipeline()<br>
> Render()<br>
><br>
> My problem is after i manipulate the ugrid on the client side there, i can't move it to the server side??? Is there a solution to connect the manipulated ugrid at server side with my DataObjectGenerator ? I know there are the programmable source, but i need data from other objects to manipulate the grid and i want to use my python script as macro.<br>
><br>
> regards flo<br>
> --<br>
> NEU: FreePhone - kostenlos mobil telefonieren!<br>
> Jetzt informieren: <a href="http://www.gmx.net/de/go/freephone" target="_blank">http://www.gmx.net/de/go/freephone</a><br>
><br>
><br>
> --<br>
> Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir<br>
> belohnen Sie mit bis zu 50,- Euro! <a href="https://freundschaftswerbung.gmx.de" target="_blank">https://freundschaftswerbung.gmx.de</a><br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</div></div></blockquote></div><br>