Notifications
Clear all
[Closed] Input wanted: OpenBitmap throws exception?
Dec 12, 2006 9:00 pm
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:
-
Make it return undefined if it fails.
pros: No more exceptions to worry about.
cons: May break some scripts -
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
Dec 12, 2006 9:00 pm
Hi Chris,
Yes, the first solution is the best because it follows MAXScript spirit.