Re: list of external files

2014-01-22 Thread Ognjen Vukovic
ut cant seem to get it to work... >>>>>> >>>>>> >>>>>> On Wed, Jan 22, 2014 at 3:09 PM, gareth bell >>>>>> wrote: >>>>>> >>>>>>> Or this if you want a new line for each file: >>&g

Re: list of external files

2014-01-22 Thread Ognjen Vukovic
2, 2014 at 3:09 PM, gareth bell >>>>> wrote: >>>>> >>>>>> Or this if you want a new line for each file: >>>>>> >>>>>> >>>>>> xsi = Application >>>>>> >>>>>> extension = ".psd" >&

Re: list of external files

2014-01-22 Thread Alok Gandhi
istOfFiles = [] >>>>> >>>>> currentProject = xsi.ActiveProject >>>>> >>>>> for eachFile in xsi.ActiveProject2.ActiveScene.ExternalFiles: >>>>> if extension in eachFile.Name: >>>>> listOfFiles.ap

Re: list of external files

2014-01-22 Thread Alan Fregtman
listOfFiles = [] >>>>> >>>>> currentProject = xsi.ActiveProject >>>>> >>>>> for eachFile in xsi.ActiveProject2.ActiveScene.ExternalFiles: >>>>> if extension in eachFile.Name: >>>>> listOfFiles.append(eachF

Re: list of external files

2014-01-22 Thread Ognjen Vukovic
t;>> >>>> extension = ".psd" >>>> listOfFiles = [] >>>> >>>> currentProject = xsi.ActiveProject >>>> >>>> for eachFile in xsi.ActiveProject2.ActiveScene.ExternalFiles: >>>> if extension in eachFile.Name:

Re: list of external files

2014-01-22 Thread Alok Gandhi
>>> listOfFiles.append(eachFile.Name) >>> print eachFile >>> >>> for eachPSD in listOfFiles: >>> newFile = open(str(currentProject) + XSIUtils.Slash + >>> "myListFile.txt", "a") >>> newFile.writ

Re: list of external files

2014-01-22 Thread Alan Fregtman
ot;a") >> newFile.write(str(eachPSD) + "\n") >> newFile.close() >> >> >> -- >> From: garethb...@outlook.com >> To: softimage@listproc.autodesk.com >> Subject: RE: list of external files >> Dat

Re: list of external files

2014-01-22 Thread Vladimir Jankijevic
open(str(currentProject) + XSIUtils.Slash + > "myListFile.txt", "a") > newFile.write(str(eachPSD) + "\n") > newFile.close() > > > -- > From: garethb...@outlook.com > To: softimage@listproc.autodesk.com > S

Re: list of external files

2014-01-22 Thread Ognjen Vukovic
") > newFile.close() > > > -------------- > From: garethb...@outlook.com > To: softimage@listproc.autodesk.com > Subject: RE: list of external files > Date: Wed, 22 Jan 2014 14:03:39 + > > > would this work? > > >

RE: list of external files

2014-01-22 Thread gareth bell
print eachFile for eachPSD in listOfFiles: newFile = open(str(currentProject) + XSIUtils.Slash + "myListFile.txt", "a") newFile.write(str(eachPSD) + "\n") newFile.close() From: garethb...@outlook.com To: softimage@listproc.autodesk.com Subject: RE:

RE: list of external files

2014-01-22 Thread gareth bell
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(st

Re: list of external files

2014-01-22 Thread Martin Yara
I think something like this should work in Python. It gathers all imageclips and get their filenames. Just change the first 2 variables. #---# yourExtension = ".dds" yourTxtFilePath = "d:\list_" + yourExtension[1:] +".txt" file = open( yourTxtFilePath, "w")