chrrox
01-21-2010, 12:34 AM
Hi I am trying to import a lot of files at one time but I am having max run out of memory (i think)
this is what i have for a command
Mydirectory ="E:\bg\0001"
filesarray = getfiles ( Mydirectory+ "\\*.obj" )
for file in filesarray do
(
f = fopen file "rb" --open file in read only format
p = getFilenamePath file
Do import here (
)
fclose f
)
i seem to be able to import around 50 objects at a time like this but if i don't do any importing max can list the files no problem
this is what i have for a command
Mydirectory ="E:\bg\0001"
filesarray = getfiles ( Mydirectory+ "\\*.obj" )
for file in filesarray do
(
f = fopen file "rb" --open file in read only format
p = getFilenamePath file
Do import here (
)
fclose f
)
i seem to be able to import around 50 objects at a time like this but if i don't do any importing max can list the files no problem
