Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Plugin installer per user

Plugin installer per user

Anonymous
Not applicable
547 Views
3 Replies
Message 1 of 4

Plugin installer per user

Anonymous
Not applicable

Hello. Is it possible to install plugin for 3dsMax with current user only? I didn't find answer in documentation. 

For development I can just copy my dlls in bin/assemblies, but it's bad option for release. 

Can anyone give me any advice? 

 

Thanks, 

Artem.

0 Likes
548 Views
3 Replies
Replies (3)
Message 2 of 4

spacefrog_
Advisor
Advisor

If you are talking about C++ plugins, "Plugin.UserSettings.ini", which holds the plugins search paths is already user specific. So you can simply put your plugin in it's own subfolder ( best still would be  plugins\ in the maxroot though ) and add the path entry to that "Plugin.UserSettings.ini". Now the plugin would only ever get loaded for that particular user


Josef Wienerroither
Software Developer & 3d Artist Hybrid
0 Likes
Message 3 of 4

Anonymous
Not applicable
Thanks for your answer. Yes, I talked about C++/CLI plugin.
"Plugin.UserSettings.ini" doesn't work for me and I don't know why. Maybe for this option I need to add something in my plugin - descriptions or something else?

Thanks,
Artem.
0 Likes
Message 4 of 4

spacefrog_
Advisor
Advisor

A C++/CLI plugin is special. It's essentially an assembly and has do go into the bin\assemblies folder to be autoloaded at 3ds Max start. I don't think Assemblies in plugin paths set by "plugin.ini" "Plugin.UserSettings.ini" are loaded automatically, but i'm not 100% sure .

 

But as you can easily load an assembly using Maxscript from any path you like ( dotNet.loadAssembly() ) , i guess the best solution would be putting the asembly into a custom folder and a maxscript in the user's scripts/startup folder,  which loads that assembly from that custom path. This way only the user with thtat maxscript in his scripts/startup folder would have the plugin loaded


Josef Wienerroither
Software Developer & 3d Artist Hybrid
0 Likes