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")

xsi = Application
oImgs = xsi.ActiveProject.ActiveScene.ImageClips
for img in oImgs:
    fileName = img.source.Filename.value
    if (fileName.upper().find(yourExtension.upper()) != -1):
        file.write(fileName +"\n")

file.close()
#-------------------------------------------#


Martin


On Wed, Jan 22, 2014 at 10:19 PM, Ognjen Vukovic <[email protected]> wrote:

> 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.
>

Reply via email to