Community
3ds Max Programming
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max SDK, Maxscript and Python topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Plugin on C#

1 REPLY 1
Reply
Message 1 of 2
Anonymous
965 Views, 1 Reply

Plugin on C#

As i understand now possible to make plugin only on c#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Autodesk.Max;
using Autodesk.Max.Plugins;

namespace Plane
{
public class PlaneDescriptor : ClassDesc2
{
IGlobal global;

internal static IClass_ID classID;

public PlaneDescriptor(IGlobal global_)
{
this.global = global_;

classID = global.Class_ID.Create(253674,23564);

}

public override string Category
{
get { return "Max .NET Tutorial"; }
}

public override IClass_ID ClassID
{
get { return classID; }
}

public override string ClassName
{
get { return "Plane"; }
}

public override object Create(bool loading)
{
return new Plane();
}

public override bool IsPublic
{
get { return true; }
}

public override SClass_ID SuperClassID
{
get { return SClass_ID.Geomobject; }
}
}
public class Plane : SimpleObject2
{
public override void BuildMesh(int t)
{
}

public override ICreateMouseCallBack CreateMouseCallBack
{
get { return null; }
}

public override RefResult NotifyRefChanged(IInterval changeInt, IReferenceTarget hTarget, ref UIntPtr partID, RefMessage message)
{
return RefResult.Succeed;
}
}

public static class AssemblyFunctions
{
public static void AssemblyMain()
{
var g = Autodesk.Max.GlobalInterface.Instance;
var i = g.COREInterface13;
i.AddClass(new PlaneDescriptor(g));
}

}
}

I am placing dll into bin/assemblies
This code dont works. Max crashes on start.What is wrong? May be problem with x64 platform? Please help who know how to make plugin on c#
1 REPLY 1
Message 2 of 2
RaphaelSteves6487
in reply to: Anonymous

yeah i'm currently trying to make the same thing work with no luck  and no i can't use CUIstuff since i need an actual object that "lives" in the scene and updates frame by frame, tick by tick; like the rest of the objects.

 

i am just looking to make a proper, nice integration; create from create panel, modify in.. well.. modify panel.. the works

any help on this would be greatly apprechiated

 

(i'm using max2013x64 and VS2010 in case one is interrested)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report