From 9c3f09570490506839a2f2346fc9e93f307273e2 Mon Sep 17 00:00:00 2001 From: Wesley Hill Date: Fri, 29 Nov 2019 00:36:30 +0000 Subject: [PATCH] add c++ c# python and mxs --- .gitignore | 1010 +++++++++++++++++++++ README.md | 33 + c++/README.md | 32 + c++/example/DllEntry.cpp | 53 ++ c++/example/Example.cpp | 145 +++ c++/example/Example.def | 8 + c++/example/Example.h | 67 ++ c++/example/Example.rc | Bin 0 -> 7216 bytes c++/example/Example.sln | 25 + c++/example/Example.vcxproj | 123 +++ c++/example/Example.vcxproj.filters | 43 + c++/example/resource.h | 32 + csharp/README.md | 23 + csharp/example/.gitattributes | 22 + csharp/example/.gitignore | 214 +++++ csharp/example/Example.csproj | 87 ++ csharp/example/Example.sln | 25 + csharp/example/Example.xaml | 28 + csharp/example/Example.xaml.cs | 148 +++ csharp/example/Properties/AssemblyInfo.cs | 15 + demo.png | Bin 0 -> 13800 bytes maxscript/README.md | 12 + maxscript/example.ms | 86 ++ python/README.md | 12 + python/example.py | 104 +++ python/ui/example.ui | 117 +++ 26 files changed, 2464 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 c++/README.md create mode 100644 c++/example/DllEntry.cpp create mode 100644 c++/example/Example.cpp create mode 100644 c++/example/Example.def create mode 100644 c++/example/Example.h create mode 100644 c++/example/Example.rc create mode 100644 c++/example/Example.sln create mode 100644 c++/example/Example.vcxproj create mode 100644 c++/example/Example.vcxproj.filters create mode 100644 c++/example/resource.h create mode 100644 csharp/README.md create mode 100644 csharp/example/.gitattributes create mode 100644 csharp/example/.gitignore create mode 100644 csharp/example/Example.csproj create mode 100644 csharp/example/Example.sln create mode 100644 csharp/example/Example.xaml create mode 100644 csharp/example/Example.xaml.cs create mode 100644 csharp/example/Properties/AssemblyInfo.cs create mode 100644 demo.png create mode 100644 maxscript/README.md create mode 100644 maxscript/example.ms create mode 100644 python/README.md create mode 100644 python/example.py create mode 100644 python/ui/example.ui diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..25e0c6b --- /dev/null +++ b/.gitignore @@ -0,0 +1,1010 @@ +### C++ ### +# Prerequisites +*.d + +# Compiled Object files +*.slo +*.lo +*.o +*.obj + +# Precompiled Headers +*.gch +*.pch + +# Compiled Dynamic libraries +*.so +*.dylib +*.dll + +# Fortran module files +*.mod +*.smod + +# Compiled Static libraries +*.lai +*.la +*.a +*.lib + +# Executables +*.exe +*.out +*.app + +### C# ### +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.iobj +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding add-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +### Python ### +# Byte-compiled / optimized / DLL files +*.py[cod] +*$py.class + +# C extensions + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +pip-wheel-metadata/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ +.pytest_cache/ + +# Translations +*.mo +*.pot + +# Django stuff: +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +.python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ +### C++ ### +# Prerequisites +*.d + +# Compiled Object files +*.slo +*.lo +*.o +*.obj + +# Precompiled Headers +*.gch +*.pch + +# Compiled Dynamic libraries +*.so +*.dylib +*.dll + +# Fortran module files +*.mod +*.smod + +# Compiled Static libraries +*.lai +*.la +*.a +*.lib + +# Executables +*.exe +*.out +*.app + +### Csharp ### +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.iobj +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding add-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +### Python ### +# Byte-compiled / optimized / DLL files +*.py[cod] +*$py.class + +# C extensions + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +pip-wheel-metadata/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ +.pytest_cache/ + +# Translations +*.mo +*.pot + +# Django stuff: +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +.python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..223f11b --- /dev/null +++ b/README.md @@ -0,0 +1,33 @@ +### Autodesk 3ds Max Custom Callback Notification Examples + +This repository demonstrates how to hook onto and call custom callback notifications in Autodesk 3ds Max 2019. This repository comes with [this accompanying blogpost](https://wesleyhill.co.uk/p/custom-callback-notifcations-in-3ds-max/). + +### Requirements + ++ [**Autodesk 3ds Max 2019**](https://www.autodesk.co.uk/products/3ds-max/free-trial) and higher. + + Autodesk 3ds Max 2019 (and higher) **SDK** (Comes with the installer) ++ [**Microsoft Visual Studio 2017/2019 IDE**]() ++ [**Windows 10**](https://www.microsoft.com/en-gb/software-download/windows10) + + +### Usage + +Each folder contains a language implementation of the example with a README on how to run the examples. + +![](demo.png) + +[`c++`](https://github.com/hako/3dsMax-CustomNotifications/tree/master/c%2B%2B) (top left) + +[`csharp`](https://github.com/hako/3dsMax-CustomNotifications/tree/master/csharp) (top right) + +[`maxscript`](https://github.com/hako/3dsMax-CustomNotifications/tree/master/maxscript) (bottom left) + +[`python`](https://github.com/hako/3dsMax-CustomNotifications/tree/master/python) (bottom right) + +This has been tested to be working on **Windows 10**. + +### LICENSE + +Apache License 2.0 + +See [LICENSE](https://github.com/hako/3dsMax-CustomNotifications/tree/master/LICENSE) for the full license text. \ No newline at end of file diff --git a/c++/README.md b/c++/README.md new file mode 100644 index 0000000..bb581a9 --- /dev/null +++ b/c++/README.md @@ -0,0 +1,32 @@ +### C++ + +### Building the C++ example + +1. Launch `Example.sln` in Visual Studio +2. Go to "Project > Example Properties > Reference Paths" +3. Add the following paths: + + `\3ds Max 2019\` + + `\3ds Max 2019\bin\assemblies\` +4. Click on to "Build > Build Solution" + +### Running the C++ example + +There are two ways in installing & running the C++ example: + +1. Go to "x64\bin\Debug\" or "x64\bin\Release\" +2. Copy `CustomNotificationsDemo.dlu` to `\3ds Max 2019\stdplugs\` +3. Launch 3ds Max 2019 + +**or** + +1. Launch 3ds Max 2019 +2. Go to "Customize > Plug-in Manager (Right Click) > Load New Plug-in..." +3. Go to "x64\bin\Debug\" or "x64\bin\Release\" and select `CustomNotificationsDemo.dlu` + +Finally, go to "Utilities > More... > Custom Notifications Demo" to run the demo. + +### LICENSE + +Apache License 2.0 + +See [LICENSE](https://github.com/hako/3dsMax-CustomNotifications/tree/master/LICENSE) for the full license text. \ No newline at end of file diff --git a/c++/example/DllEntry.cpp b/c++/example/DllEntry.cpp new file mode 100644 index 0000000..065aec5 --- /dev/null +++ b/c++/example/DllEntry.cpp @@ -0,0 +1,53 @@ +// +// Demonstration on how to call custom 3ds Max notifications in C++. +// Works with 3ds Max 2019 and above. +// (c) 2019 Wesley Hill +// + +#include "Example.h" + +extern ClassDesc2* GetUtilitySampleDesc(); + +HINSTANCE hInstance; + +BOOL WINAPI DllMain(HINSTANCE hinstDLL, ULONG fdwReason, LPVOID) +{ + if (fdwReason == DLL_PROCESS_ATTACH) + { + hInstance = hinstDLL; + DisableThreadLibraryCalls(hInstance); + } + return(TRUE); +} + +__declspec(dllexport) int LibNumberClasses() +{ + return 1; +} + +__declspec(dllexport) ULONG LibVersion() +{ + return VERSION_3DSMAX; +} + +__declspec(dllexport) const TCHAR* LibDescription() +{ + return L"Demonstration on how to call custom 3ds Max notifications in C++ (Autodesk 3DS Max 2019 and up)."; +} + +__declspec(dllexport) ClassDesc* LibClassDesc(int i) +{ + switch (i) { + case 0: return GetUtilitySampleDesc(); + default: return 0; + } +} + +TCHAR *GetString(int id) +{ + static TCHAR buf[256]; + + if (hInstance) + return LoadString(hInstance, id, buf, _countof(buf)) ? buf : nullptr; + return nullptr; +} diff --git a/c++/example/Example.cpp b/c++/example/Example.cpp new file mode 100644 index 0000000..613c873 --- /dev/null +++ b/c++/example/Example.cpp @@ -0,0 +1,145 @@ +// +// Demonstration on how to call custom 3ds Max notifications in C++. +// Works with 3ds Max 2019 and above. +// (c) 2019 Wesley Hill +// + +#include "Example.h" +#include +#include + +ClassDesc2* GetUtilitySampleDesc() { + static ExampleClassDesc exampleDesc; + return &exampleDesc; +} + +void ShowMessage(const wchar_t* msg) { + HWND sbHandle = GetDlgItem(GetActiveWindow(), IDC_STATUS_BAR); + SetWindowTextW(sbHandle, msg); +} + +int GetNotificationCode() { + HWND cHandle = GetDlgItem(GetActiveWindow(), IDC_COMBOBOX); + + wchar_t textCode[256]; + LRESULT idx = SendMessageW(cHandle, CB_GETCURSEL, (WPARAM)0, (LPARAM)0); + SendMessageW(cHandle, (UINT)CB_GETLBTEXT, (WPARAM)idx, (LPARAM)textCode); + + std::wstring str = std::wstring(textCode); + if (str.compare(L"Custom1") == 0) { return Example::Custom1; } + if (str.compare(L"Custom2") == 0) { return Example::Custom2; } + if (str.compare(L"Custom3") == 0) { return Example::Custom3; } + if (str.compare(L"Custom4") == 0) { return Example::Custom4; } + if (str.compare(L"Custom5") == 0) { return Example::Custom5; } + if (str.compare(L"Custom6") == 0) { return Example::Custom6; } + if (str.compare(L"Custom7") == 0) { return Example::Custom7; } + + return -1; +} + +void Callback(void *param, NotifyInfo *info) { + MessageBoxW(nullptr, L"Hello World!", L"Result", MB_ICONINFORMATION); +} + +void Example::Register() { + int code = GetNotificationCode(); + + if (registeredCodes.count(code) == 1 && code != -1) { + ShowMessage(L"Notification already registered."); + return; + } + RegisterNotification(Callback, nullptr, code); + ShowMessage(L"Notification registered."); + registeredCodes.insert(code); +} + +void Example::Broadcast() { + int code = GetNotificationCode(); + if (code != -1) { + BroadcastNotification(code); + } +} + +void Example::Unregister() { + int code = GetNotificationCode(); + if (registeredCodes.count(code) == 1 && code != -1) { + UnRegisterNotification(Callback, nullptr, code); + ShowMessage(L"Notification unegistered."); + registeredCodes.erase(code); + return; + } + ShowMessage(L"Notification not registered."); +} + +void Example::ForceUnregister() { + if (!registeredCodes.empty()) { + for (int code = Custom1; code <= Custom7; code++) { + UnRegisterNotification(Callback, nullptr, code); + } + ShowMessage(L"Notifications forcibly unregistered."); + registeredCodes.clear(); + return; + } + ShowMessage(L"Notifications not registered."); +} + +void Example::BeginEditParams(Interface* ip, IUtil* iu) { + this->ip = ip; + ex.InitDialog(); +} + +void Example::EndEditParams(Interface* ip, IUtil* iu) { + this->ip = nullptr; +} + +void Example::InitDialog() { + CreateDialogParamW(hInstance, MAKEINTRESOURCE(IDD_PANEL), ip->GetMAXHWnd(), DlgProc, (LPARAM)this); + + HWND cHandle = GetDlgItem(GetActiveWindow(), IDC_COMBOBOX); + for (int i = 1; i <= 7; i++) { + std::wstring checkBoxText = L"Custom" + std::to_wstring(i); + SendMessageW(cHandle, (UINT)CB_ADDSTRING, (WPARAM)0, (LPARAM)checkBoxText.c_str()); + } + SendMessageW(cHandle, (UINT)CB_SELECTSTRING, (WPARAM)0, (LPARAM)L"Custom1"); +} + +INT_PTR CALLBACK Example::DlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) +{ + switch (msg) + { + case WM_INITDIALOG: + break; + + case WM_CLOSE: + EndDialog(hWnd, 0); + break; + + case WM_DESTROY: + PostQuitMessage(0); + break; + + case WM_COMMAND: + switch (LOWORD(wParam)) { + case IDC_BN: + Example::Broadcast(); + break; + + case IDC_RN: + Example::Register(); + break; + + case IDC_UN: + Example::Unregister(); + break; + + case IDC_FUN: + Example::ForceUnregister(); + break; + } + break; + + default: + return FALSE; + } + return TRUE; +} \ No newline at end of file diff --git a/c++/example/Example.def b/c++/example/Example.def new file mode 100644 index 0000000..db779cf --- /dev/null +++ b/c++/example/Example.def @@ -0,0 +1,8 @@ +LIBRARY CustomNotificationsDemo.dlu +EXPORTS + LibDescription @1 PRIVATE + LibNumberClasses @2 PRIVATE + LibClassDesc @3 PRIVATE + LibVersion @4 PRIVATE +SECTIONS + .data READ WRITE diff --git a/c++/example/Example.h b/c++/example/Example.h new file mode 100644 index 0000000..f917578 --- /dev/null +++ b/c++/example/Example.h @@ -0,0 +1,67 @@ +// +// Demonstration on how to call custom 3ds Max notifications in C++. +// Works with 3ds Max 2019 and above. +// (c) 2019 Wesley Hill +// + +#pragma once + +#include "Max.h" + +#include "istdplug.h" +#include "iparamb2.h" +#include "iparamm2.h" +#include "resource.h" +#include +#include +#include + +extern HINSTANCE hInstance; +extern TCHAR *GetString(int id); + +class Example : public UtilityObj +{ +public: + Example() { } + virtual ~Example() { } + virtual void DeleteThis() { } + static void ForceUnregister(); + static void Unregister(); + static void Broadcast(); + static void Register(); + virtual void BeginEditParams(Interface *ip, IUtil *iu); + virtual void EndEditParams(Interface *ip, IUtil *iu); + + enum CustomNotificationCode { + Custom1 = 4098, // 0x00001002 + Custom2 = 4099, // 0x00001003 + Custom3 = 4100, // 0x00001004 + Custom4 = 4101, // 0x00001005 + Custom5 = 4102, // 0x00001006 + Custom6 = 4103, // 0x00001007 + Custom7 = 4104, // 0x00001008 + }; + + void InitDialog(); + static INT_PTR DlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); + +private: + Interface *ip; + HWND hPanel; +}; + +static Example ex; +static std::set registeredCodes; + +class ExampleClassDesc : public ClassDesc2 +{ +public: + virtual int IsPublic() { return TRUE; } + virtual void* Create(BOOL) { return &ex; } + virtual const TCHAR * ClassName() { return L"Custom Notifications Demo"; } + virtual SClass_ID SuperClassID() { return UTILITY_CLASS_ID; } + virtual Class_ID ClassID() { return Class_ID(0x6a287c04, 0x76533d12); } + virtual const TCHAR* Category() { return L"CustomNotificationsDemo"; } + virtual const TCHAR* InternalName() { return L"CustomNotificationsDemo"; } + virtual HINSTANCE HInstance() { return hInstance; } +}; diff --git a/c++/example/Example.rc b/c++/example/Example.rc new file mode 100644 index 0000000000000000000000000000000000000000..257c27ca30fdadd69f853872100fcb4c2801b529 GIT binary patch literal 7216 zcmeHMS#R4$5T54({SU1CQlmk9C_&;!-8C%9f+#x)U_elO$U+^tuq4z0`rF%n-;72i zMN+oh7GMt$)Gl{tXJ_Z$(eJqcApsy6Rlv@8G15lg_a_a-dz?CN18IRT z>pZ>zm+s{Y&OZlt$cF(={Sm*%ICTx@BtIG$Kg7E(k*8%ag47?E>yrF09><&_(~bpr zMNPWFxnHIm&UwdMtk$UuAl)hK?@sOV7N`9lGN0nh?Jz{ota2v18Co!l+0;b&^Limc?H}d;Hnt0HR}*V%$il32JkHT8bJFv$4O4GYyBVR3$m@;b%HJ51Mn;x zGSK-d&fZc_LFi!lWP9EV*~Gq3ve*fwUGl?}}yZacW2*zrCeh%)ui@(6LHmB%k3Au2&F#CdS9U%DaVL zMQy3EK@*N4=MWZ48?2(=z*kK%^st^$w!7jm`CJ0bHKNfyD48iu^g9#%4wk>SXnz6h z9BqJz&pd*e#3dp>*H||VXmy_ zh_D?(mk;C!Gb5~JuChQ*vWuJ~sbhZr8gNp_TR3qaIfQG~dRqd_BXE8JHu66Y8$DR4 zob965!K!sk#?9wo>j6Vwv4oje9CHbhi*vZUfuk-(qd#fy`PTK<#G$yR7pw19YN&|gj8I<8GUJ|wckHv0h*1ENM8z9n5 z5CQIBQ{zcy*5M~ImI_|F&B^K8h~$VtR5_9K4|ReVXTLoxtAC{2R)(2d)tAS44zRi9`~ae z-`_HO@?stK<{Y93L=KKI!7N^=lqD*@z~otb!sGXr&&V~hap`OarxAx>r-ufXj(_F;X3Ss62{ z8b&GiH+Y$?yhVF}hrD$PDLdYbs%Qsz(%D!adyhdqDJ75csf|<7$C+&Rvb;;||7Oem zc@JgHVS5_RRy4fTvqwDGmWC$e!}`-ibKy~D zR}>tnuIKTl292<47b{-$EXl{UZXM2K&-^$#U0HXkLDzU6s3YT~?_h211E{e(x_cLg zVx6E5y)JCK`h1^d%Xj&h-6@vVR1TLHG1k^``mj}Q9MVQ4(GGC<|Q`O&(oTi##)pSo{F@1`)B`2 b;oWKTKPk?~qHrKh2Pw?=JXURce!cV$V3Ju6 literal 0 HcmV?d00001 diff --git a/c++/example/Example.sln b/c++/example/Example.sln new file mode 100644 index 0000000..10c045f --- /dev/null +++ b/c++/example/Example.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.28307.757 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Example", "Example.vcxproj", "{4E8DC1E8-083B-4518-9346-FA40FE903BC7}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4E8DC1E8-083B-4518-9346-FA40FE903BC7}.Debug|x64.ActiveCfg = Debug|x64 + {4E8DC1E8-083B-4518-9346-FA40FE903BC7}.Debug|x64.Build.0 = Debug|x64 + {4E8DC1E8-083B-4518-9346-FA40FE903BC7}.Release|x64.ActiveCfg = Release|x64 + {4E8DC1E8-083B-4518-9346-FA40FE903BC7}.Release|x64.Build.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {B641622E-CF90-442A-B67E-8EFC9653E77C} + EndGlobalSection +EndGlobal diff --git a/c++/example/Example.vcxproj b/c++/example/Example.vcxproj new file mode 100644 index 0000000..eeac2f8 --- /dev/null +++ b/c++/example/Example.vcxproj @@ -0,0 +1,123 @@ + + + + + Debug + x64 + + + Release + x64 + + + + {4E8DC1E8-083B-4518-9346-FA40FE903BC7} + Example + 10.0.17763.0 + Example + + + + DynamicLibrary + true + v141 + Unicode + + + DynamicLibrary + false + v141 + true + Unicode + + + + + + + + + + + + + .dlu + CustomNotificationsDemo + + + .dlu + CustomNotificationsDemo + + + + Level3 + Disabled + true + C:\Users\maxsdk\include;%(AdditionalIncludeDirectories) + stdcpp17 + + + true + C:\Users\maxsdk\lib\x64\Release;%(AdditionalLibraryDirectories) + $(MSBuildProjectDirectory)\$(MSBuildProjectName).def + core.lib;geom.lib;gfx.lib;mesh.lib;maxutil.lib;maxscrpt.lib;gup.lib;bmm.lib;paramblk2.lib;%(AdditionalDependencies) + + + + + Level3 + MaxSpeed + true + true + + + C:\Users\maxsdk\include;%(AdditionalIncludeDirectories) + /GR /we4002 /we4706 /we4390 /we4557 /we4546 /we4545 /we4295 /we4310 /we4130 /we4611 /we4213 /we4121 /we4715 /we4701 /w34265 /wd4244 /wd4018 /wd4819 %(AdditionalOptions) + true + Async + true + true + true + AnySuitable + Speed + Fast + false + _USRDLL;%(PreprocessorDefinitions) + false + true + stdcpp17 + + + true + true + true + C:\Users\maxsdk\lib\x64\Release;%(AdditionalLibraryDirectories) + core.lib;geom.lib;gfx.lib;mesh.lib;maxutil.lib;maxscrpt.lib;gup.lib;bmm.lib;paramblk2.lib;%(AdditionalDependencies) + + + true + + + true + Windows + $(MSBuildProjectDirectory)\$(MSBuildProjectName).def + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/c++/example/Example.vcxproj.filters b/c++/example/Example.vcxproj.filters new file mode 100644 index 0000000..2ed154a --- /dev/null +++ b/c++/example/Example.vcxproj.filters @@ -0,0 +1,43 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Source Files + + + Source Files + + + + + Header Files + + + Header Files + + + + + Source Files + + + + + Resource Files + + + \ No newline at end of file diff --git a/c++/example/resource.h b/c++/example/resource.h new file mode 100644 index 0000000..9f0164f --- /dev/null +++ b/c++/example/resource.h @@ -0,0 +1,32 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by Example.rc +// +#define IDS_LIBDESCRIPTION 1 +#define IDS_CATEGORY 2 +#define IDS_CLASS_NAME 3 +#define IDS_PARAMS 4 +#define IDS_SPIN 5 +#define IDD_PANEL 101 +#define IDC_CLOSEBUTTON 1000 +#define IDC_DOSTUFF 1000 +#define IDC_RN 1000 +#define IDC_COMBOBOX 1001 +#define IDC_STATUS_BAR 1002 +#define IDC_UN 1007 +#define IDC_FUN 1008 +#define IDC_BN 1009 +#define IDC_COLOR 1456 +#define IDC_EDIT 1490 +#define IDC_SPIN 1496 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 102 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1003 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/csharp/README.md b/csharp/README.md new file mode 100644 index 0000000..51e54d7 --- /dev/null +++ b/csharp/README.md @@ -0,0 +1,23 @@ +### C# + +### Building the C# example + +1. Launch `Example.csproj` in Visual Studio +2. Go to "Project > Example Properties > Reference Paths" +3. Add the following paths: + + `\3ds Max 2019\` + + `\3ds Max 2019\bin\assemblies\` +4. Click on to "Build > Build Solution" + +### Running the C# example + +1. Go to "example\bin\Debug\" +2. Copy `CustomNotificationsDemo.dll` to `\3ds Max 2019\bin\assemblies\` +3. Launch 3ds Max 2019 + +### LICENSE + +Apache License 2.0 + +See [LICENSE](https://github.com/hako/3dsMax-CustomNotifications/tree/master/LICENSE) for the full license text. + diff --git a/csharp/example/.gitattributes b/csharp/example/.gitattributes new file mode 100644 index 0000000..412eeda --- /dev/null +++ b/csharp/example/.gitattributes @@ -0,0 +1,22 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# Custom for Visual Studio +*.cs diff=csharp +*.sln merge=union +*.csproj merge=union +*.vbproj merge=union +*.fsproj merge=union +*.dbproj merge=union + +# Standard to msysgit +*.doc diff=astextplain +*.DOC diff=astextplain +*.docx diff=astextplain +*.DOCX diff=astextplain +*.dot diff=astextplain +*.DOT diff=astextplain +*.pdf diff=astextplain +*.PDF diff=astextplain +*.rtf diff=astextplain +*.RTF diff=astextplain diff --git a/csharp/example/.gitignore b/csharp/example/.gitignore new file mode 100644 index 0000000..3d3dd1a --- /dev/null +++ b/csharp/example/.gitignore @@ -0,0 +1,214 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.sln.docstates + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +x64/ +build/ +bld/ +[Bb]in/ +[Oo]bj/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +#NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +*_i.c +*_p.c +*_i.h +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opensdf +*.sdf +*.cachefile + +# Visual Studio profiler +*.psess +*.vsp +*.vspx + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding addin-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# NCrunch +*.ncrunch* +_NCrunch_* +.*crunch*.local.xml + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml + +# NuGet Packages Directory +packages/ +## TODO: If the tool you use requires repositories.config uncomment the next line +#!packages/repositories.config + +# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets +# This line needs to be after the ignore of the build folder (and the packages folder if the line above has been uncommented) +!packages/build/ + +# Windows Azure Build Output +csx/ +*.build.csdef + +# Windows Store app package directory +AppPackages/ + +# Others +sql/ +*.Cache +ClientBin/ +[Ss]tyle[Cc]op.* +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.pfx +*.publishsettings +node_modules/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file to a newer +# Visual Studio version. Backup files are not needed, because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# SQL Server files +*.mdf +*.ldf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings + +# Microsoft Fakes +FakesAssemblies/ + +# ========================= +# Operating System Files +# ========================= + +# OSX +# ========================= + +.DS_Store +.AppleDouble +.LSOverride + +# Icon must ends with two \r. +Icon + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# Windows +# ========================= + +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp diff --git a/csharp/example/Example.csproj b/csharp/example/Example.csproj new file mode 100644 index 0000000..c91c06c --- /dev/null +++ b/csharp/example/Example.csproj @@ -0,0 +1,87 @@ + + + + + Debug + AnyCPU + {0E37A9AB-4C0C-43D1-B923-C571F73F9376} + library + Properties + Example + CustomNotificationsDemo + v4.7 + 512 + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 4 + + None + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + false + + + true + + + + ..\..\..\..\..\..\Program Files\Autodesk\3ds Max 2019\Autodesk.Max.dll + False + + + ..\..\..\..\..\..\Program Files\Autodesk\3ds Max 2019\bin\assemblies\Autodesk.Max.Wrappers.dll + + + + + + 4.0 + + + ..\..\..\..\..\..\Program Files\Autodesk\3ds Max 2019\UiViewModels.dll + False + + + + + + + + Example.xaml + + + Code + + + + + + Designer + MSBuild:Compile + + + + + \ No newline at end of file diff --git a/csharp/example/Example.sln b/csharp/example/Example.sln new file mode 100644 index 0000000..b4f7387 --- /dev/null +++ b/csharp/example/Example.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.28307.705 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Example", "Example.csproj", "{0E37A9AB-4C0C-43D1-B923-C571F73F9376}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {0E37A9AB-4C0C-43D1-B923-C571F73F9376}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0E37A9AB-4C0C-43D1-B923-C571F73F9376}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0E37A9AB-4C0C-43D1-B923-C571F73F9376}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0E37A9AB-4C0C-43D1-B923-C571F73F9376}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {A4ECE214-062F-42DE-AE0F-67D27AFF8637} + EndGlobalSection +EndGlobal diff --git a/csharp/example/Example.xaml b/csharp/example/Example.xaml new file mode 100644 index 0000000..0768fdb --- /dev/null +++ b/csharp/example/Example.xaml @@ -0,0 +1,28 @@ + + +