Notifications
Clear all
[Closed] First time using c# and maxscript issue
Feb 01, 2015 2:32 pm
I’ve been using maxscript for sometimes but it’s the first time that I have to use a .dll to do something.
I use that dll to compress a jpg and convert it while writing some jpg data inside an xml file.
the core of the Csharp part wasnt writen by me.
namespace testCSharp
{
public class convertObj
{
string theName;
// theName = the jpg file
public void buildXml(string theName)
{
//do some stuff
}
}
}
what i’d like to do is to execute the part inside the buildXML part
I tried loading the dll using the dotnet load assembly but then when I try to load the dotnet object with a command like:
aa = dotnetObject "testCSharp.ConvertObj"
I get
-- Runtime error: Cannot resolve type: testCSharp.ConvertObj
so yeah … I’m kinda stuck here, I managed to get my script running and do the stuff inside visual studios but i’m unable to get it working from max