[Paraview] animate point data in single file as time steps
I'm using vtkUnstructuredGrid to display point data that changes with time. The unstructured grid, however, remains unchanged. Instead of creating a new vtu-file for each time step that contains all the grid information, i created a single vtu-file containing the point data for each time step as a separate data array. The idea is that this avoids having to reload the grid for each time step. Now what I'd like to do is to loop through all the time steps saved as data arrays using some python code. Does anyone know how to do that? Any help is greatly appreciated. Matthias ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Lighting in Paraview
Dear all I'm trying to understand how is paraview applying the lighting, is it using more than one lighting resource I found head lighting, back lighting ... and how can I disable all different lights (using python scripting) and work only with a regular ambient light ? ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Help with Clip filter Annotation
Hello all, I am making a Annotation for Clip filter that shows the current location. I have been trying to use the new PythonAnnotation filter but I am not able to access the Origin and Offset properties from the input to the filters Expression. This is the Expression I tried: 'At %.0f Northing' % input.ClipType.Offset+input.ClipType.Origin[1] In order to get around this, I have made this small python script. from paraview.simple import * # Get the active source actSource = GetActiveSource() # Add the filter anno = PythonAnnotation(actSource) # Calculate the Northing, offset + origin north = anno.Input[0].ClipType.Offset + anno.Input[0].ClipType.Origin[1] # Set the anno expression exprStr = 'At %.0f Northing' % {0:.0f} .format(north) anno.Expression = exprStr Show(anno) Render() This works initially, but I am not able to figure out how to get filter to update when the properties of the Clip filter are changed. All suggestions and help are highly appreciated. Thanks Gudni Karl ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Controlling RenderView using Wiimote and VRPlugin
Hi, I am currently trying to create a way of controlling the camera in ParaView using the Joystick of a Wiimote (WiiC library). I had previously attempted this by using Pat Marion's socket plugin to send camera changes through the python shell but ran into a problem with sending too many Render() commands. It was suggested to me by Pat Marion and the Kitware employees I met at SuperComputing 2012 to use the VRPlugin to accomplish this. So after a 3 month hiatus from my project, I have finally gotten back to it but am currently lost in documentation. I have no idea where to begin with writing the code for a custom device and then connecting to and writing the camera changes to the VRPN server for ParaView. If someone could point me in the right direction of documentation that explains how to create a custom device/interaction for the VRPlugin/VRPN or some examples of such user created applications I would greatly appreciate it! Thanks, Travis J. Bueter -- Missouri University of Science and Technology - Junior B.S. Computer Engineering/Computer Science tjb...@mail.mst.edumailto:tjb...@mail.mst.edu (573)-238-5843 IT Research Support Service Treasurer - MST Robotics Competition Team -- ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Controlling RenderView using Wiimote and VRPlugin
Hi Bueter, You will first have to figure out how to set a VRPN server and WiiMote working for wiimote Joystick (I'm guessing its the four buttons in front for left,right,top,bottom). Here is tutorial that may help you. http://www.vrgeeks.org/vrpn/tutorial---use-vrpn. It dont think it uses the buttons but you can tweak the example to write one for them. Once you have the VRPN server ready then connecting them to PV should be a matter easy. The last I checked I dont think the VRPlugin has any interaction styles handling button input. However this may have changed in the recent months. If it has not then you will have to write a new interactor style to handle this. -Nikhil On Thu, Feb 28, 2013 at 4:41 PM, Bueter, Travis J. (ST-Student) tjb...@mail.mst.edu wrote: Hi, ** ** I am currently trying to create a way of controlling the camera in ParaView using the Joystick of a Wiimote (WiiC library). I had previously attempted this by using Pat Marion’s socket plugin to send camera changes through the python shell but ran into a problem with sending too many Render() commands. It was suggested to me by Pat Marion and the Kitware employees I met at SuperComputing 2012 to use the VRPlugin to accomplish this. So after a 3 month hiatus from my project, I have finally gotten back to it but am currently lost in documentation. I have no idea where to begin with writing the code for a custom device and then connecting to and writing the camera changes to the VRPN server for ParaView. If someone could point me in the right direction of documentation that explains how to create a custom device/interaction for the VRPlugin/VRPN or some examples of such user created applications I would greatly appreciate it! ** ** Thanks, ** ** *Travis J. Bueter* -- *Missouri University of Science and Technology - Junior* B.S. Computer Engineering/Computer Science tjb...@mail.mst.edu (573)-238-5843 ** ** IT Research Support Service Treasurer – MST Robotics Competition Team -- ** ** ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview -- Regards Nikhil ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Controlling RenderView using Wiimote and VRPlugin
On Thu, Feb 28, 2013 at 5:11 PM, Nikhil Shetty nikhil.she...@kitware.comwrote: Hi Bueter, You will first have to figure out how to set a VRPN server and WiiMote working for wiimote Joystick (I'm guessing its the four buttons in front for left,right,top,bottom). Here is tutorial that may help you. http://www.vrgeeks.org/vrpn/tutorial---use-vrpn. It dont think it uses the buttons but you can tweak the example to write one for them. Once you have the VRPN server ready then connecting them to PV should be a matter easy. The last I checked I dont think the VRPlugin has any interaction styles handling button input. Button inputs are handled (if I understood the question right) http://paraview.org/gitweb?p=ParaView.git;a=blob;f=Plugins/VR/vtkVRGrabWorldStyle.h;h=087c37e76b69d420f2338a18eed61e6124e27e45;hb=HEAD However this may have changed in the recent months. If it has not then you will have to write a new interactor style to handle this. -Nikhil On Thu, Feb 28, 2013 at 4:41 PM, Bueter, Travis J. (ST-Student) tjb...@mail.mst.edu wrote: Hi, ** ** I am currently trying to create a way of controlling the camera in ParaView using the Joystick of a Wiimote (WiiC library). I had previously attempted this by using Pat Marion’s socket plugin to send camera changes through the python shell but ran into a problem with sending too many Render() commands. It was suggested to me by Pat Marion and the Kitware employees I met at SuperComputing 2012 to use the VRPlugin to accomplish this. So after a 3 month hiatus from my project, I have finally gotten back to it but am currently lost in documentation. I have no idea where to begin with writing the code for a custom device and then connecting to and writing the camera changes to the VRPN server for ParaView. If someone could point me in the right direction of documentation that explains how to create a custom device/interaction for the VRPlugin/VRPN or some examples of such user created applications I would greatly appreciate it! ** ** Thanks, ** ** *Travis J. Bueter* --*** * *Missouri University of Science and Technology - Junior* B.S. Computer Engineering/Computer Science tjb...@mail.mst.edu (573)-238-5843 ** ** IT Research Support Service Treasurer – MST Robotics Competition Team --*** * ** ** ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview -- Regards Nikhil ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview -- | Aashish Chaudhary | RD Engineer | Kitware Inc. | www.kitware.com ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Controlling RenderView using Wiimote and VRPlugin
If you using the VRPN to read the Wiimote data, then it should be straightforward. The simplest example is vtkVRTrackStyle which handle a single tracker input. Have a look at it here: http://paraview.org/gitweb?p=ParaView.git;a=blob;f=Plugins/VR/vtkVRTrackStyle.h;h=7d73c7c5282b2c166223ee2bdd235f2cfb9d8356;hb=HEAD I could provide more help if needed. Let me know if you have any questions. Thanks, On Thu, Feb 28, 2013 at 4:41 PM, Bueter, Travis J. (ST-Student) tjb...@mail.mst.edu wrote: Hi, ** ** I am currently trying to create a way of controlling the camera in ParaView using the Joystick of a Wiimote (WiiC library). I had previously attempted this by using Pat Marion’s socket plugin to send camera changes through the python shell but ran into a problem with sending too many Render() commands. It was suggested to me by Pat Marion and the Kitware employees I met at SuperComputing 2012 to use the VRPlugin to accomplish this. So after a 3 month hiatus from my project, I have finally gotten back to it but am currently lost in documentation. I have no idea where to begin with writing the code for a custom device and then connecting to and writing the camera changes to the VRPN server for ParaView. If someone could point me in the right direction of documentation that explains how to create a custom device/interaction for the VRPlugin/VRPN or some examples of such user created applications I would greatly appreciate it! ** ** Thanks, ** ** *Travis J. Bueter* -- *Missouri University of Science and Technology - Junior* B.S. Computer Engineering/Computer Science tjb...@mail.mst.edu (573)-238-5843 ** ** IT Research Support Service Treasurer – MST Robotics Competition Team -- ** ** ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview -- | Aashish Chaudhary | RD Engineer | Kitware Inc. | www.kitware.com ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview