Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Corona Goodies - User Contributions => Topic started by: Christa Noel on 2016-09-29, 13:03:07

Title: Prevent crash on loadscene when IR is running
Post by: Christa Noel on 2016-09-29, 13:03:07
Hi guys,
I remember that some days ago I see a report that load new scene when IR is running will cause max crash. and I see that is true.
so, here i share a script that do what the title has explained :)
it doesn't do complex job but just does stop render and start IR on max file load and max reset events.
grab the attached file and place it to maxroot>script>startup before 3dsmax start.
I hope it will be useful, cheers!!
Title: Re: Prevent crash on loadscene when IR is running
Post by: Frood on 2016-09-29, 14:00:56
Works great, have thrown it into the shared startup scripts folder :) Thank you!

Good Luck


Title: Re: Prevent crash on loadscene when IR is running
Post by: Christa Noel on 2016-09-30, 04:53:51
hi frood, thanx for the feedback :)
a friend just said," it will be useful for user who always has IR running in separate desktop monitor, and don't have to worries the crash if he forgot to stop IR when load new scene. but anyway, crash shouldn't be exist in any program"
I hope ondra will implement it to corona with his max SDK (sorry ondra, I'm not trying to tell you how to do it). or maybe it is already planned :D
cheers !!
Title: Re: Prevent crash on loadscene when IR is running
Post by: Ondra on 2016-09-30, 11:14:54
I would love it! I need to reverse-engineer what the script does and do the same in C++. So far all my attempts were unsuccessful - I always got the "closing the scene" notification when it was already too late
Title: Re: Prevent crash on loadscene when IR is running
Post by: Christa Noel on 2016-09-30, 12:05:37
yes, thanx Ondra :D
I update the attachment, no methods change, it just comes with optimized or better codes.