[Closed] Help needed with C# and Maxscript
Hello Everyone
I am new at using 3dsMax and Maxscript. I have developed a code in Maxscript which makes use of an optimization algorithm for path finding and then creates spline paths between 2 objects.
Long story short. [/B]I want to run the code using Microsoft Visual Studio (C#) because I have been told that it will speed up the algorithm. I have no experience in C#.
- I just want to know how to do this? What to write in the C# code?
- Can I use the Maxscript code and call it from C# as it is or will I need to modify it?[/B]
I have gone through several C# Maxscript searches on various threads but they seem very complicated for a newbie.
PLEASE HELP with whatever inputs and/or links.
Thanks,
Yashovardhan
You can’t “run” maxscript through visual studio, to “speed things up”, that’s not how it works…
What the person meant was likely that it would be faster if you implemented the algorithm in C# instead of MAXscript. Which may be true, but for this you’d have to learn C#, then rewrite it in C#, then read up on how to load a dotNet assembly in max and use the functions in MAXscript. Or just write the whole thing in C# using the SDK, which would be yet more complicated.
Once you finally do that, some smarty pants will come around and tell you “hey, it’d run even faster if you implemented it in C++”. And then it’s all over again…
Is optimizing it really important to the point where you have to spend weeks learning a new language and SDK to do it?
I believe it is likely a bit too much to ask of a newbie.
Thank you so much for your reply. I kind of had a feeling that it wasn’t possible to directly run a Maxscript code through VS but I didn’t want to give up trying. Now I can do that without feeling guilty.
Thank you so much again