Message 1 of 1
Bitmap over network hangup?

Not applicable
09-26-2007
01:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there,
I`m having the following issue:
I have a folder somewhere on the network with lot`s of .mov movies for which I want to create a thumbnail automaticly by maxscript. Sounds easy... in fact it is. The creation process is done in the following way:
get all filenames, then in a loop use openBitmap() to open the .mov, create a new bitmap reference and use copy() to paste the opened bitmap in the newly created one and eventually save the new fresh bitmap and use close() on the bitmap references.
And now the ugly part: this whole process works like a charm, except the fact that it won`t create more than 6 thumbnails! When I pass 6 thumbs, VIZ will hangup... over and over again! I Even used freeSceneBitmaps() and gc() after every bitmap creation... but it doesn`t pass more than 6 thumbs.... ?!
Does anybody have any idea ?
I`m having the following issue:
I have a folder somewhere on the network with lot`s of .mov movies for which I want to create a thumbnail automaticly by maxscript. Sounds easy... in fact it is. The creation process is done in the following way:
get all filenames, then in a loop use openBitmap() to open the .mov, create a new bitmap reference and use copy() to paste the opened bitmap in the newly created one and eventually save the new fresh bitmap and use close() on the bitmap references.
And now the ugly part: this whole process works like a charm, except the fact that it won`t create more than 6 thumbnails! When I pass 6 thumbs, VIZ will hangup... over and over again! I Even used freeSceneBitmaps() and gc() after every bitmap creation... but it doesn`t pass more than 6 thumbs.... ?!
Does anybody have any idea ?
progressStart "Generating thumbs"
i=1
for baseMov in missingThumbs do (
try (
movRef = openBitmap baseMov
) catch (
alert("Failed opening "+getFilenameFile baseMov+"!\n")
exit
)
movRef.frame = 5
newBmp = bitmap 200 150 color:black filename:("F:\\Stockpoint - 3D\\Video\\People\\"+getFilenameFile baseMov+".jpg")
copy movRef newBmp
save newBmp
close newBmp
close movRef
progressUpdate (100*i/missingThumbs.count)
i+=1
freeSceneBitmaps()
gc()
)
progressEnd()