Community
3ds Max Programming
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max SDK, Maxscript and Python topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unloading an MCR, how?

5 REPLIES 5
Reply
Message 1 of 6
Haider_of_Sweden
964 Views, 5 Replies

Unloading an MCR, how?

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? 

5 REPLIES 5
Message 2 of 6

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,



David Lanier
Principal Software Engineer
3ds Max Rendering Team
Message 3 of 6

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...

Message 4 of 6

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,



David Lanier
Principal Software Engineer
3ds Max Rendering Team
Message 5 of 6

could you give a scenario where you need to unload (delete, disable) a macro?

Message 6 of 6

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.

Post to forums  

Autodesk Design & Make Report