Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
Saving out a w3d member (off topic?)

Saving out a w3d member (off topic?)

2003-12-13       - By Mark Hill

 Back
Reply:     1     2     3     4     5     6     7     8     9     10  

Hi,

Actually the FileXtra isn't on the DirMX CD, nor included with
Director, you have to download and install it yourself from Kent
Kerstens website at http://www.kblab.net/xtras/index.html.

It's an excellent free xtra, and I recommend you check it out... but
there is a way to achieve what you're after without it using the
built-in getNthFileNameInFolder() function:

on xImportFolder(tFolderPathName, tSearchSuffix)
  tNumIts = 5000 -- the number of files to search
  tFileList = []
  repeat with i = 1 to tNumIts
    n = getNthFileNameInFolder(tFolderPathName, i)
    if n = EMPTY then exit repeat
    c = n.char.count
    s = tSearchSuffix.char.count - 1
    if n.char[c-s..c] = tSearchSuffix then xImportFile(n)
  end repeat
end

on xImportFile(filename)
  --do your thang :)
  put filename
end


HTH :)

Mark Hill
xonko interactive
http://www.xonko.com
On 14/12/2003, at 10:44 AM, NoiseCrime wrote:

>
>> Also, I am using file I/O to allow the user (me) to import the files
>> one by one. Is there a way in File I/O to batch import a folder? I
>> realize this is off-topic for this list.
>
> Yes use filextra instead. It should be installed in your xtras folder,
> or
> perhaps its in the goodies folder of your Director CD I forget now,
> but that
> in conjunction with fileIO can do everything you want. You should find
> a pdf
> with the xtra that explains all its features and functions.
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
Dir3d-l mailing list
Dir3d-l@(protected)
http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l