I’m a beginner on paraview, I don’t necessarily know all the features.
My project on paraview is to import an stl, as well as a csv format table (X,Y,Z coordinates as well as several physical variables). The csv evolved into TableToPoint and then into Delaunay 2D. All physical variables have their own custom color, built into my version of paraview.
By doing a py via pvpython, I don’t have a problem to do these steps, and screenshoots of all the physical variables with a specific camera position.
The data is then sent to the client, no worries about screenshots, but I would like the client to be able to interact with the data via a pvsm file. The problem comes from the pvsm file not saving the stl and data, but will look for the path of the files. This makes this function impossible for a customer who wants to open the file directly, without spending time troubleshooting issues.
If I try to make a “save data” in several formats, by opening paraview again, I only have the stl.
Is there a way to make a save to keep the stl, data, and custom colors working on any computer?
I tested both solutions. Vtkjs + glance fails to display custom colors (json file imported into paraview). Gltf allows me to open the scene but I only have the physical variable that was displayed during the save.
Looking more closely at the content of the pvsm file, I saw that you can change the data paths, to relative paths. If the stl and csv are in the same folder as the pvsm, we can open and load the data. I need to make a macro that changes the paths after the creation of the pvsm.
Works here, dont import the json file in ParaView, view the html file in a browser instead.
ltf allows me to open the scene but I only have the physical variable that was displayed during the save.
Indeed, needs vtkjs format for that
If the stl and csv are in the same folder as the pvsm, we can open and load the data. I need to make a macro that changes the paths after the creation of the pvsm.