Notifications
Clear all

[Closed] Write/Read binary file in 3Ds Max 7

I knew that in max 8 and above we can use binstream for writing and reading file.
But I couldnt found a solution in 3Ds Max 7 using Maxscript.
btw, I already try filestream using “wb” and “rb” and it doesnt work at all when I trying to read some jpegs.

Does anyone know a way to do it in Max 7? Thanks.

4 Replies
2 Replies
(@ypuech)
Joined: 10 months ago

Posts: 0

BinStream was added to MAXScript in Max R4.

Also, I think it’s a hard task trying to read jpegs in MAXScript… It’s slow and I’m not sure you’ll succeed in because jpegs image format is difficult to work with.

Use a bitmap value instead; openBitmap, setPixel, getPixel etc. are very useful to manipulate bitmaps.

(@eric720)
Joined: 10 months ago

Posts: 0

Oops, I made a mistake. Thanks

Hi,
not sure about max7 but doesn’t fopen work ?
fopen does not show on the help index but do a search …

1 Reply
(@eric720)
Joined: 10 months ago

Posts: 0

fopen is the function inside Binstream but only available in 3ds Max 8 and higher.