Posted by: | gooky | |
Data created: | 17 May 2012 |
Hi all, I have read the thread on how to create and exporter: https://www.ephere.com/autodesk/max/forums/general/thread_1181.html Also I have read the SDK regarding AssemblyMain. In total I have the following code: using System;
public static void AssemblyShutdown() public class TestExporter : SceneExport public Hwnd32(IntPtr handle) public IntPtr Handle public class TestExporterDescriptor : ClassDesc2 //must be a nested class public TestExporterDescriptor(IGlobal global) public override string Category public override IClass_ID ClassID public override string ClassName public override object Create(bool loading) public override bool IsPublic public override SClass_ID SuperClassID private IGlobal m_global; public TestExporter(IGlobal global, TestExporterDescriptor descriptor) public override string AuthorName { get { return "Lasse Johansen"; } } public override int DoExport(string name, IExpInterface ei, IInterface i, bool suppressPrompts, uint options) public override string Ext(int n) public override string OtherMessage1() public override string OtherMessage2() public override void ShowAbout(IntPtr hWnd) I have put the dll inside the bin\assemblies folder. However when I try to export, 3dsmax crashes. I have tried with ephere max.net and the 3dsmax sap, both with same result. Anyone made an exporter using max.net? P.s. I use 3dsmax 2012 32 bit version |