Notifications
Clear all

[Closed] Input wanted: OpenBitmap throws exception?

Currently openbitmap throws an exception if something happens: i.e. If the filename is invalid or something. We are considering changing it so that it merely returns undefined. I remember talking with some scripter guru’s in spring of 2005, and they expressed a desire to make it simply return undefined. So we can:

  1. Make it return undefined if it fails.
    pros: No more exceptions to worry about.
    cons: May break some scripts

  2. Add an additional parameter telling it to NOT throw an exception.
    pros: doesn’t break existing scripts.
    cons: not very elegant, and inconsistent with the rest of maxscript.

What do you guys want?

Chris Johnson

4 Replies

Hey Chris,

I think #1 is better.

Light

1 for me.

Hi Chris,

Yes, the first solution is the best because it follows MAXScript spirit.

Thanks guys.

Chris J.