Skip to content

Latest commit

 

History

History
45 lines (27 loc) · 1.14 KB

vsdotnet_settings.md

File metadata and controls

45 lines (27 loc) · 1.14 KB

How to setup environment in Visual Studio for Maya .NET(C#) API

Limits

  • Maya .NET SDK is available in 64-bit only
  • The version must upper than Maya 2013 Extension 2
  • .NET 4.5 Framework or .NET 4.0 Framework

Recommended

  • Visual Studio 2012 with .NET 4.5 Framework

Extension

  • Maya .NET API extension is .nll.dll

Variables

  • $(MayaInstallationPath) : Your Maya installation directory
  • $(MayaPluginPath) : Your Maya plug-ins directory

Project Settings

  • Start from C# Class Library
    Other Languages -> Visual C# -> Class Library

    New Project

  • Solution Properties (Alt + Enter) -> Reference Paths -> add $(MayaInstallationPath)/bin

    Add New Reference Paths

  • Solution Explorer -> References -> Add Reference
    Extensions -> Check openmayacs

    openmayacs

  • Solution Properties (Alt + Enter) -> Build Events -> Post-build event command line
    -> copy /Y "$(TargetPath)" "$(MayaPluginPath)$(TargetName).nll.dll"

using OpenMaya at head

using Autodesk.Maya.OpenMaya;