Skip to content

Commit

Permalink
Add support fo Maya 2023 plugin (#1053)
Browse files Browse the repository at this point in the history
* Add of Maya 2023

* Update Maya/Properties/AssemblyInfo.cs

Co-authored-by: Gary Hsu <[email protected]>

Co-authored-by: Gary Hsu <[email protected]>
  • Loading branch information
pandaGaume and bghgary authored Jun 1, 2022
1 parent 8d9acc3 commit bdd428c
Show file tree
Hide file tree
Showing 4 changed files with 220 additions and 9 deletions.
17 changes: 11 additions & 6 deletions Maya/Maya2Babylon.sln
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@

Microsoft Visual Studio Solution File, Format Version 12.00
<<<<<<< Updated upstream

# Visual Studio 15
VisualStudioVersion = 15.0.26730.12

=======
# Visual Studio Version 16
VisualStudioVersion = 16.0.31613.86
>>>>>>> Stashed changes
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Maya2Babylon2017", "Maya2Babylon2017.csproj", "{50780553-6248-463B-A0F3-F82C6CCEC703}"
EndProject
Expand All @@ -28,9 +22,16 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Maya2Babylon2020", "Maya2Ba
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Maya2Babylon2022", "Maya2Babylon2022.csproj", "{CCCE1B88-0BB5-4D0C-BD2F-3E9F6E7DF180}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Maya2Babylon2023", "Maya2Babylon2023.csproj", "{074CCED5-52D1-4CB3-94D8-B8B117D452E1}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
..\SharedProjects\GltfExport.Entities\GltfExport.Entities.projitems*{00356433-4277-48bb-ac33-92d3c47fe28b}*SharedItemsImports = 13
..\SharedProjects\Babylon2GLTF\Babylon2GLTF.projitems*{074cced5-52d1-4cb3-94d8-b8b117d452e1}*SharedItemsImports = 4
..\SharedProjects\BabylonExport.Entities\BabylonExport.Entities.projitems*{074cced5-52d1-4cb3-94d8-b8b117d452e1}*SharedItemsImports = 4
..\SharedProjects\BabylonFileConverter\BabylonFileConverter.projitems*{074cced5-52d1-4cb3-94d8-b8b117d452e1}*SharedItemsImports = 4
..\SharedProjects\GltfExport.Entities\GltfExport.Entities.projitems*{074cced5-52d1-4cb3-94d8-b8b117d452e1}*SharedItemsImports = 4
..\SharedProjects\Utilities\Extensions.projitems*{074cced5-52d1-4cb3-94d8-b8b117d452e1}*SharedItemsImports = 4
..\SharedProjects\Babylon2GLTF\Babylon2GLTF.projitems*{0ac46a8e-8c0d-4ebe-b64a-4cc274e0ff38}*SharedItemsImports = 4
..\SharedProjects\BabylonExport.Entities\BabylonExport.Entities.projitems*{0ac46a8e-8c0d-4ebe-b64a-4cc274e0ff38}*SharedItemsImports = 4
..\SharedProjects\BabylonFileConverter\BabylonFileConverter.projitems*{0ac46a8e-8c0d-4ebe-b64a-4cc274e0ff38}*SharedItemsImports = 4
Expand Down Expand Up @@ -77,6 +78,10 @@ Global
{CCCE1B88-0BB5-4D0C-BD2F-3E9F6E7DF180}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CCCE1B88-0BB5-4D0C-BD2F-3E9F6E7DF180}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CCCE1B88-0BB5-4D0C-BD2F-3E9F6E7DF180}.Release|Any CPU.Build.0 = Release|Any CPU
{074CCED5-52D1-4CB3-94D8-B8B117D452E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{074CCED5-52D1-4CB3-94D8-B8B117D452E1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{074CCED5-52D1-4CB3-94D8-B8B117D452E1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{074CCED5-52D1-4CB3-94D8-B8B117D452E1}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
206 changes: 206 additions & 0 deletions Maya/Maya2Babylon2023.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,206 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{074CCED5-52D1-4CB3-94D8-B8B117D452E1}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Maya2Babylon</RootNamespace>
<AssemblyName>Maya2Babylon</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG;MAYA2023</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\2023\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<Reference Include="GDImageLibrary">
<HintPath>Refs\GDImageLibrary.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>Refs\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="openmayacs">
<HintPath>Refs\2023\openmayacs.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Web" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="TargaImage">
<HintPath>Refs\TargaImage.dll</HintPath>
</Reference>
<Reference Include="TQ.Texture">
<HintPath>Refs\TQ.Texture.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="BabylonExportActionItem.cs" />
<Compile Include="Exporter\BabylonExporter.CustomAttributes.cs" />
<Compile Include="Exporter\BabylonExporter.Material.Optimiser.cs" />
<Compile Include="Exporter\BabylonExporter.Camera.cs" />
<Compile Include="Exporter\BabylonExporter.Light.cs" />
<Compile Include="Exporter\BabylonExporter.Material.cs" />
<Compile Include="Exporter\BabylonExporter.Animation.cs" />
<Compile Include="Exporter\BabylonExporter.Mesh.cs" />
<Compile Include="Exporter\BabylonExporter.Node.cs" />
<Compile Include="Exporter\BabylonExporter.Skeleton.cs" />
<Compile Include="Exporter\BabylonExporter.Texture.cs" />
<Compile Include="Exporter\BabylonExporter.Writer.cs" />
<Compile Include="Exporter\BabylonExporter.Logger.cs" />
<Compile Include="Exporter\BabylonExporter.cs" />
<Compile Include="Exporter\AnimationGroup.cs" />
<Compile Include="Exporter\GlobalVertex.cs" />
<Compile Include="Exporter\GLTFGlobalVertex.cs" />
<Compile Include="Exporter\BabylonExporter.Material.Duplication.cs" />
<Compile Include="Exporter\MaterialDuplicationData.cs" />
<Compile Include="Exporter\PluginNodes\babylonAiStandardSurfaceMaterialNode.cs" />
<Compile Include="Exporter\PluginNodes\babylonMaterialNodeBase.cs" />
<Compile Include="Exporter\PluginNodes\babylonMPxNode.cs" />
<Compile Include="Exporter\PluginNodes\babylonStandardMaterialNode.cs" />
<Compile Include="Exporter\PluginNodes\babylonStingrayPBSMaterialNode.cs" />
<Compile Include="Extensions\ColorExtension.cs" />
<Compile Include="Extensions\MColorExtension.cs" />
<Compile Include="Extensions\MFloatVectorExtension.cs" />
<Compile Include="Extensions\MFloatPointExtension.cs" />
<Compile Include="Extensions\MFnDependencyNodeExtension.cs" />
<Compile Include="Extensions\MMatrixExtension.cs" />
<Compile Include="Extensions\MPlugExtension.cs" />
<Compile Include="Extensions\MPointExtension.cs" />
<Compile Include="Extensions\MVectorExtension.cs" />
<Compile Include="Extensions\MTransformationMatrixExtension.cs" />
<Compile Include="Forms\ExporterForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\ExporterForm.Designer.cs">
<DependentUpon>ExporterForm.cs</DependentUpon>
</Compile>
<Compile Include="Exporter\GLTFBufferService.cs" />
<Compile Include="Forms\AnimationForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\AnimationForm.Designer.cs">
<DependentUpon>AnimationForm.cs</DependentUpon>
</Compile>
<Compile Include="Forms\AnimationGroupControl.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Forms\AnimationGroupControl.Designer.cs">
<DependentUpon>AnimationGroupControl.cs</DependentUpon>
</Compile>
<Compile Include="Loader.cs" />
<Compile Include="MayaPlugin.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Tools\Tools.cs" />
<Compile Include="Tools\WebServer.cs" />
</ItemGroup>
<ItemGroup>
<Folder Include="Refs\" />
</ItemGroup>
<ItemGroup>
<WCFMetadata Include="Connected Services\" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Forms\AnimationForm.resx">
<DependentUpon>AnimationForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\AnimationGroupControl.resx">
<DependentUpon>AnimationGroupControl.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\ExporterForm.resx">
<DependentUpon>ExporterForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="Resources\maya_exporter_logo.jpg" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\MayaExporter.png" />
</ItemGroup>
<Import Project="..\SharedProjects\BabylonFileConverter\BabylonFileConverter.projitems" Label="Shared" />
<Import Project="..\SharedProjects\GltfExport.Entities\GltfExport.Entities.projitems" Label="Shared" />
<Import Project="..\SharedProjects\Utilities\Extensions.projitems" Label="Shared" />
<Import Project="..\SharedProjects\Babylon2GLTF\Babylon2GLTF.projitems" Label="Shared" />
<Import Project="..\SharedProjects\BabylonExport.Entities\BabylonExport.Entities.projitems" Label="Shared" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>setlocal enabledelayedexpansion

SET configurationName=$(ConfigurationName)
ECHO %25configurationName%25

if not exist "$(SolutionDir)assemblies" mkdir "$(SolutionDir)assemblies"
if not exist "$(SolutionDir)assemblies\2023" mkdir "$(SolutionDir)assemblies\2023"
copy "$(TargetDir)*.dll" "$(SolutionDir)assemblies\2023\"
del "$(SolutionDir)assemblies\2023\$(TargetName).dll"
copy "$(TargetPath)" "$(SolutionDir)assemblies\2023\$(TargetName).nll.dll"
if exist "D:\Programmes\Autodesk\Maya2023\bin\plug-ins\" copy "$(SolutionDir)assemblies\2023\*.dll" "D:\Programmes\Autodesk\Maya2023\bin\plug-ins\"
if exist "C:\Program Files\Autodesk\Maya2023\bin\plug-ins\" copy "$(SolutionDir)assemblies\2023\*.dll" "C:\Program Files\Autodesk\Maya2023\bin\plug-ins\"

IF "%25configurationName%25"=="Debug" GOTO DebugOnMaya
GOTO Close

:DebugOnMaya
if exist "C:\Program Files\Autodesk\Maya2023\bin\maya.exe" START /d "C:\Program Files\Autodesk\Maya2023\bin" maya.exe
GOTO Close

:Close
PAUSE
EXIT</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PreBuildEvent>setlocal enabledelayedexpansion

SET configurationName=$(ConfigurationName)
ECHO %25configurationName%25

IF "%25configurationName%25"=="Debug" GOTO OnDebug
GOTO Close

:OnDebug
taskkill /im maya.exe /f /fi "STATUS eq RUNNING"

:Close
PAUSE
EXIT</PreBuildEvent>
</PropertyGroup>
</Project>
6 changes: 3 additions & 3 deletions Maya/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
// l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations
// associées à un assembly.
[assembly: AssemblyTitle("Maya2Babylon")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyDescription("Maya to Babylon exporter plugin.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyCompany("Microsoft Corporation")]
[assembly: AssemblyProduct("Maya2Babylon")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyCopyright("Copyright © 2022")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand Down
Binary file added Maya/Refs/2023/openmayacs.dll
Binary file not shown.

0 comments on commit bdd428c

Please sign in to comment.