Think of fetch and the python shell in general as working on copies of the data in the client. Changes to the copy won't persist. The way it showed up in the spreadsheet view is kind of fluke.
Try the python programmable filter which works on the data where it lives on the server. The output of that filter will reflect the changes. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Thu, Feb 4, 2016 at 2:50 PM, Dinu Patirniche <[email protected]> wrote: > Hi there, > > I'm trying to change the coordinates of a 3D Point, and then visualize > it. I managed to change the coordinates of the point via: > > import vtk.numpy_interface.dataset_adapter as dsa > pointSource1.UpdatePipeline() > rawData = servermanager.Fetch(pointSource1) > data = dsa.WrapDataObject(data) > data.Points[0][0] = 10 > > > This sets the X-coordinate of the first point in the list to 10. Now, > if I open a spreadsheet view, upon updating the pipeline, I can see > the manually set value in the table. But in the render-view, the point > stays in the same place. This changes, when I try select the point, > which immediately goes to the right place. Once I cancel the > selection, everything goes back to the original configuration. Also in > the information panel, the span along the X-axes doesn't change during > this whole process at all. > > Does anyone know what I have to call, in order to make that change > effective? > > Thanks, > Dinu > _______________________________________________ > 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
