Thanks guys, will give them a test out now. Another thing, does anyone know if there is a good library with which i can convert psd to 16 bit tiff with lzw compression ?... i tried PIL but had no luck with that, testing pillow now but cant seem to get it to work...
On Wed, Jan 22, 2014 at 3:09 PM, gareth bell <[email protected]> wrote: > Or this if you want a new line for each file: > > > xsi = Application > > extension = ".psd" > listOfFiles = [] > > currentProject = xsi.ActiveProject > > for eachFile in xsi.ActiveProject2.ActiveScene.ExternalFiles: > if extension in eachFile.Name: > listOfFiles.append(eachFile.Name) > print eachFile > > for eachPSD in listOfFiles: > newFile = open(str(currentProject) + XSIUtils.Slash + > "myListFile.txt", "a") > newFile.write(str(eachPSD) + "\n") > newFile.close() > > > ------------------------------ > From: [email protected] > To: [email protected] > Subject: RE: list of external files > Date: Wed, 22 Jan 2014 14:03:39 +0000 > > > would this work? > > > xsi = Application > > extension = ".psd" > listOfFiles = [] > > currentProject = xsi.ActiveProject > > for eachFile in xsi.ActiveProject2.ActiveScene.ExternalFiles: > if extension in eachFile.Name: > listOfFiles.append(eachFile.Name) > print eachFile > > > newFile = open(str(currentProject) + XSIUtils.Slash + "myListFile.txt", > "w") > newFile.write(str(listOfFiles)) > newFile.close() > > ------------------------------ > From: [email protected] > Date: Wed, 22 Jan 2014 14:19:48 +0100 > Subject: list of external files > To: [email protected] > > Hi guys, is it possible to pull a list of external files from a scene that > contain only the extension .psd for instance and write it somewhere to disk. >

