I know that the path is valid because I am able to write a text file to the same location successfully, and I am also able to import images from the location with no trouble. Yet for some reason, I am not able to save an image here. The function I call is below:
Code: Select all
FUNCTION exportFrame()
tv_SaveMode "PNG" "b32"
tv_AlphaSaveMode NoPreMultiply
fileName='"'"C:/Users/Harry T/Documents/tvpaintstuff/test/export/testFrame.png"'"'
txtFile='"'"C:/Users/Harry T/Documents/tvpaintstuff/test/export/exist.txt"'"'
tv_WriteTextFile "create" txtFile hello //this works
//print fileName //this reads as "C:/Users/Harry T/Documents/tvpaintstuff/test/export/testFrame.png"
tv_saveimage fileName //this throws the error: "cannot open file."
END