Code Monkey home page Code Monkey logo

3dsmax-menu-sample's Introduction

3dsMax-Menu-Sample

3ds Max Menu Sample .NET API plug-in

This sample code shows how to install/remove a menu from the .NET API. It runs at 3ds Max startup and also handles workspace switching.

Getting Started

The plugin source code and project was built and tested against 3ds Max 2019. In the project file you will find environment variable $(ADSK_3DSMAX_SDK_2019) referring to the 3ds Max .NET assemblies. You an change this to match the version of 3ds Max you are working with. It should work back to 3ds Max 2015. You will also have to adjust the .NET Framework version to match the 3ds Max version.

Note that it handles several menu related callbacks to handle several different situations, including the switching of workspaces to ensure menu is always present when the plugin is present, but it also removes itself when plugin is not present (so if plugin is uninstalled, the menu is also no longer present). You may want to test and experiment with your specific use cases (for example if this is in-house and uninstall is not an issue, you may not want to "remove" the menu ever.

Additional Information

This plug-in was written by Kevin Vandecar - Autodesk Developer Network.

Known Issues

The code is generic to cover as many cases as possible. Please review and adjust for your specific scenario. For example, it is using callbacks to handle all possibilities for workspace switching (which will also change the menu bar and menus). This code handles that and will insert the menu during the workspace switch. It also removes the menu at shutdown, so that if the plugin is uninstalled, it will not reappear the next time in the 3ds Max CUI setup.

Contact

For more information on developing with 3ds Max, please visit the 3ds Max Developer Center. http://www.autodesk.com/develop3dsmax

Version

1.0 - Initial Release

License

MIT License.

3dsmax-menu-sample's People

Contributors

kevinvandecar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

3dsmax-menu-sample's Issues

Solution misses references

Hi

I cloned the repository and opened it with Visual Studio 2017 (same as I use for usual 3ds max plugin development) but couldn't build the solution right away. At first I thought it was about missing references because the solution explorer revealed that there some problems with a couple of references; I was able to solve UiViewModel and Autodesk.Max by simply readding the files from my disk.

What are the missing references for?
image

However, the problem is that the build tries to copy the assembly from the build folder to bin/assemblies. I don't know where this setting is coming from, as I don't

image

Nevertheless, the actual assembly succeeds as I can just copy paste the file manually. 3ds max then loads the plugin and displays the menu:
image

So bottom line: the project works, I am just curious about those references.
Cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.