<div dir="auto"><div style="font-family:sans-serif;font-size:13.696px" dir="auto"><div style="margin:16px 0px"><div><div dir="auto">Hey :)<div dir="auto">I'm trying to script some code so that I can load a file in and then WriteImage and then I want this to loop through multiple files so I don't have to change the code each time for the new path. My problem is that paraview won't recognise a path unless it is the exact path, so I can't get it to change automatically. Any help would be greatly appreciated. Here is my current code:</div><div dir="auto"><br></div><div dir="auto">sso2_load_python</div><div dir="auto">from paraview.simple import *</div><div dir="auto">fname = '/home/sophy/Desktop'</div><div dir="auto">#I put the files on the desktop so the path was shorter</div><div dir="auto">filenames = ["c1", "c2"]</div><div dir="auto">for x in filenames:</div><div dir="auto">             Loadstate("/home/sophy/<wbr>Desktop/x.pvsm")</div><div dir="auto">      WriteImage("/home/sophy/<wbr>Desktop/image.png")</div><div dir="auto"><br></div><div dir="auto">#the previous two lines have the four space indent but my phone won't let me type it like that</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Thanks - Rebekah</div></div></div></div></div></div>