Notifications
Clear all

[Closed] Install a .dlx plugin without restart 3dsmax,possible?

Hi,
I am using a .dlx plugin for my maxscript project,the .dlx file need to install into the 3dsmax root dir\stdplugs for the first time.the problem is ,when a 3dsmax or more is\are opening,the .dlx cannot load and take effect until the 3dsmax restart again,most of the users always opening 1 or more 3dsmax and my plugin cannot take effect directly,so I just wondering is it possible to load the plugin file (.dlx file) without restart 3dsmax for first time installation?

6 Replies

Hi,
Waht you are looking is probably this: LoadDllsFromDir.
It loads all the plugins in the folder. When the DLX extension is not yet load, you can probably loaded from a tmp dir (to avoid lots of warning when loading from stdplugs), and copy it to the final destination.

Cheers,

1 Reply
(@momo2012)
Joined: 10 months ago

Posts: 0

Thanks for great help,that’s what I need!:bowdown:

Unfortunately,I got an error after tried too many times ,anyone know how to fix?

theres something about dlx that means it can’t be unloaded or loaded while max is running… in max 2010 and before it is possible to load and unload dlm dlo etc while max is running but not dlx also if a plugin uses mxs function publishing it can cause issues if it’s loaded while max is running possibly something to do with mxs function vector tables are built at start up and don’t like being messed with

You need to implement those and add to the .def to get rid of the error, just return 0 in the LibNumberClasses and return a nullptr (or NULL if you prefer the C syntax) in the LibClassDesc.

The signature is (with the proper export clauses):
__declspec( dllexport ) int LibNumberClasses();
__declspec( dllexport ) ClassDesc* LibClassDesc(int n);

1 Reply
(@momo2012)
Joined: 10 months ago

Posts: 0

Thanks too much,it worked,more information about this is goes here,hope this can help anyone that like me:
http://backlitmedia.co.uk/Portfolio/Afaq%20Sabir%203Ds%20Max%20SDK%20Plug-in%20development%20Thesis.pdf