Automating the visualization in ParaView can be done by saving ParaView “state” files, but they will include absolute paths to the data.
#!/usr/bin/bash
sed -i "s/${PWD//\//\\\/}/\.\//g" $
The changed state file ($1 argument) of the script, will now have “./” wherever the full path to the working directory was originally placed by ParaView.