|
animList = openFile(fbx_filepath)
while not eof(animlist) do
(
print (readLine(animList))
)
fbx_filepath is simply the path to a .txt file that contains a list of .fbx file names, one per line.
this isn’t really a major problem stopping me in my tracks, but i’m curious if anyone can explain what’s happening.
if you run that block of code (after plugging in a valid .txt file path for fbx_filepath), it will loop through each line and print out the file name. but for some reason, when it hits the end of the file, it prints the last line twice.
it seems like it’s running the last line in the do-while loop. if you run:
animList = openFile(fbx_filepath)
while not eof(animlist) do
(
print (readLine(animList))
i += 1
)
it will increment i after printing each file. you’ll notice it doesn’t print i out until the very end, after reaching the last line in the file.
- Howard Hsu http://www.linkedin.com/in/howardab234
Now using:
Windows XP 64 Pro v2003 SP2 (yes XP64 is still around)
Core 2 Quad CPU Q6600 @ 2.4GHz
2GB RAM
NVidia GeForce 8800 GTX
Max 2008 x64
Maya 2008 64
MotionBuilder 7.5
|