I’m pretty new to Python, I’m trying to edit the Vue Submission script so that it automatically calls the job name the same as the filename of the .vue file.
I’ve changed…
writer.WriteLine( “Name=%s” % scriptDialog.GetValue( “NameBox” ) )
to
writer.WriteLine( “Name=%s” % (sceneFile) )
but this gives me the full path to the file, I only want the filename, I’ve tried using…
import os
writer.WriteLine( “Name=%s” % (os.path.basename(sceneFile) ) )
which is what I found googling and thought I needed but doesn’t work…
any ideas?
Ta
Dw