Notifications
Clear all

[Closed] C# function publishing

Hi!

I’m wondering if somebody out there has figured out how to do “function publishing” using .NET/C# to simply call classes (functions/methods) inside 3D Studio. I just do not get it done after a whole day of searching the web and experiments…

In C++ it seems really easy, I hope there is a nice solution in C#, too.

I try to workaround problems directly inheriting from the Modifier class which constantly crashes 3D Studio Max when closing. Also the ParamBlock thing kills to much time.

Thank you very much!

6 Replies

Whatever I’ve tried I couldn’t get beyond crash on max startup.
And seems like there’s not a single working ‘helloworld’ example on the web

what do mean by “publishing”? make a function (class, struct, etc.) as a visible primitive?

you can make c#/.net dlls (assemblies) and use them

I was using the term used here: http://help.autodesk.com/view/3DSMAX/2017/ENU/?guid=__files_GUID_D11DA39D_8190_44A6_B5B1_8F5E94FDA46F_htm

So yes, I want to make it visible in MaxScript without the need to use dotNetObject (for example).

I can’t find it now, but I think there was an example of the factorial function in EPHERE (or somewhere else).
But I never got it to work (my knowhow is not fantastic).
I’ve been shearching for it for a while without success.

Thanks for your responses. I found those HowTos:
https://ephere.com/autodesk/max/forums/general/thread_61.html
https://ephere.com/autodesk/max/forums/general/thread_987.html

But it doesn’t work for me or (second link) you still need “dotNetObject”…

Around version 2012, it was possible when Ephere Autodesk.Max.dll was introduced. But its long broken, as DennisT said, you have much better change using dotnetobject.