Notifications
Clear all
[Closed] Reset or reload max script?
Jul 01, 2018 9:16 am
I have a script that has a bunch of controls and rollouts and it is shown using a rollout floater.
I need to have a button that returns the script into its original state with its original values. like when I closed and reopened it.
There are several changes to the rollout controllers during the usage of the script and the user needs to close and reopen the script every time he/she needs to use it, so there is a lot of opening and closing.
I wanted to have a button that resets or at least reopens the script on its own.
1 Reply
Jul 01, 2018 9:16 am
fileIn ( getSourceFilename() )
EDIT: i am presuming your script has some kind of destroyDialog call at the top like most of mine do. otherwise you will need to destoryDialog first obviously.