Hi!
When I drag-drop an MCR into Max, it gets loaded. I can even alter the MCR, then run macros.load() to reload it.
But how can I unload a certain Macroscript?
Hi!
I think when you load a macro script, it gets copied somewhere, to MAXROOT\usermacros or MAXROOT\userscripts.
It may also be in your 3ds Max folder in the user app data folder.
You probably need to delete the copy of this file so it gets unloaded.
Regards,
Hi David!
I meant unloading through Maxscript while still in max.
If I delete a file, I still need to restart Max and I wanted to know a way to unload while still running 3ds...
Ha no, I am afraid you can't do this, there is function as far as I could see to do such a thing.
Maybe as a workaround, you could edit it with "macros.edit" and try to modify the content of the file, but that is tricky and probably won't remove it...
You can always check with macros.list to get the lsit of registered macros.
Regards,
could you give a scenario where you need to unload (delete, disable) a macro?
Hello Denis!
The purpose I had in mind is when I change the category-name to something else.
Currently, I do the change, refresh the macros (macros.load) and the "new" Macroscript can be found where I assigned it to be. However, the old one is still there until next Max start.
I thought it would be neat to be able to do the change without restarting Max.
Can't find what you're looking for? Ask the community or share your knowledge.