3ds Max: dynamically Compiling & Running C# ["solved"]

General discussion about 3D DCC and other topics
User avatar
Hirazi Blue
Administrator
Posts: 5113
Joined: 04 Jun 2009, 10:15

3ds Max: dynamically Compiling & Running C# ["solved"]

Post by Hirazi Blue » 30 Oct 2012, 11:36

This topic is based on, well I admit it, a stupid mistake/oversight,
as Stephen Blair and Daniel Brassard point out in the next two posts
Softimage offers this facility all along (if you know where to find it)


An interesting development (at least I thought so) over in the 3ds Max universe. Autodesk’s Christopher Diggins has come up with a way to use C# more as a "classical" scripting language in that his plugin dynamically compiles and runs C# scripts.
Might be fun if such a plug would find its way to our universe as well...
Source
Stay safe, sane & healthy!

User avatar
xsisupport
Posts: 713
Joined: 09 Jun 2009, 09:02
Location: Montreal Canada

Re: 3ds Max: dynamically Compiling & Running C#

Post by xsisupport » 30 Oct 2012, 12:18

Hirazi Blue wrote:An interesting development (at least I thought so) over in the 3ds Max universe. Autodesk’s Christopher Diggins has come up with a way to use C# more as a "classical" scripting language in that his plugin dynamically compiles and runs C# scripts.
Might be fun if such a plug would find its way to our universe as well...
Source
But there already is such a plugin, isn't there?
In the SDK example workgroup.
// Steve Blair
// "You're not a runner, you're just a guy who runs" -- my wife
//
// My Blogs: Arnold | Softimage

User avatar
Daniel Brassard
Posts: 878
Joined: 18 Mar 2010, 22:38
Location: St. Thomas, Ontario

Re: 3ds Max: dynamically Compiling & Running C#

Post by Daniel Brassard » 30 Oct 2012, 12:23

Not familiar too much with C# but I though you could script with C#

http://softimage.wiki.softimage.com/sdk ... ipting.htm
$ifndef "Softimage"
set "Softimage" "true"
$endif

User avatar
Hirazi Blue
Administrator
Posts: 5113
Joined: 04 Jun 2009, 10:15

Re: 3ds Max: dynamically Compiling & Running C# ["solved"]

Post by Hirazi Blue » 30 Oct 2012, 12:41

:ymblushing: You're absolutely right... :ymblushing:
I never knew about that one, so thanks for pointing it out.
(It might however been highlighted better on the SDK docs introductory pages on C#)

But luckily for me this answer provides me with good enough reason to try my hand at C# again, as my mistake of thinking this wasn't possible in SI was one of the reasons not to dig deeper into C# ("silver lining"). The other reason, C# needing a recompile for every new version of SI still applies or is this also based on flawed information on my part?
Stay safe, sane & healthy!