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
2, 2014 at 3:09 PM, gareth bell
>>>>> wrote:
>>>>>
>>>>>> Or this if you want a new line for each file:
>>>>>>
>>>>>>
>>>>>> xsi = Application
>>>>>>
>>>>>> extension = ".psd"
>&
istOfFiles = []
>>>>>
>>>>> currentProject = xsi.ActiveProject
>>>>>
>>>>> for eachFile in xsi.ActiveProject2.ActiveScene.ExternalFiles:
>>>>> if extension in eachFile.Name:
>>>>> listOfFiles.ap
listOfFiles = []
>>>>>
>>>>> currentProject = xsi.ActiveProject
>>>>>
>>>>> for eachFile in xsi.ActiveProject2.ActiveScene.ExternalFiles:
>>>>> if extension in eachFile.Name:
>>>>> listOfFiles.append(eachF
t;>>
>>>> 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.writ
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
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
")
> 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?
>
>
>
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:
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
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")
12 matches
Mail list logo