Notifications
Clear all

[Closed] Test plugin written on C# without reloading 3d MAX

Hi, I’m writing a plugin on C#. Could anyone tell me how to test the plug-in each time without overloading 3d max. Is it possible to write a script that will load the new version of the plugin and unload the old one?
Thanks for your answers…

38 Replies

Anybody? Help, please…)

I’ve been doing the same thing and I can’t find a solution for compiling, copying over the DLL to assemblies\bin and restart 3ds Max.

If there’s another way to do it without restarting Max all the time, I would be all up for it!

Sorry I can’t give you better news

try my
dll manager script
I designed it for iterating on C# .dlls without having to relaunch 3DSMax
let me know if it works for you.

I’ve seen this before and it’s pretty awesome, but this does not work for plugins, or am I missing something?

This would work for independent DLL that can be used in Maxscript or something similar as a dotnet object/class.

Sorry, yes, i was not written for stand alone plugins.

it’s possible (in c++ not sure about c#) with a dlx script extension, OLE exposed functions and some fancy python registry jiggery pokery (also needs a registry version hack for the OLE) in conjunction with a visual studio post build event. Not for the faint hearted

oh I also forgot you might need to write a custom c based python extension to check to see if certain processes are running.

Have you tried this tool from Chris Diggins? Have you watched this video about MaxDotNet from Marsel?

What apparently has changed from the video is that there is no longer a Utility plugin to change the unload option. Instead you need to manually edit the .config file to enable that functionality. The file is found in:
“C:\Users[user]\AppData\Local\Autodesk\3dsMax[version]\ENU\en-US\plugcfg”
edit “MaxDotNet.config” in your favorite text editor and change:<AllowPluginUnloading>false</AllowPluginUnloading> to true

Hopefully that will do it for you.
-Eric

Eric, that is what I was looking for! I could kiss you man But let’s leave this to a beer when we meet Thanks!

I haven’t dove into “real” programming yet, but atleast I remembered seeing Marsel’s video years ago. Glad I could help.

-Eric

Page 1 / 4