ScriptSpot

Script

maxJs

By maxscriptfactory · Credited author: Pavel Vojacek · 2013-02-27

Version
0.01
Date updated
2013-02-27
Votes
1
External download
External download
Description

Have fun with javascript in 3dsmax. Very simple integration google's V8 engine over .net. Please read instruction on my pages, some manual adjustments are necessary.
Already here, I say it's just basic javascript (no xhr and similar stuff)
Probably useless. Take it as an example.

Comments (5)

fajar · 2013-03-01

could you give us some example?

maxscriptfactory · 2013-03-01

check out my website from links. i don't have more now

examples

maxscriptfactory · 2013-03-01

check out my website from links. i don't have more now

that's interesting

Anubis · 2013-02-28

I not tested it yet, but 2-3 questions raise in my head instantly :)

1. If your assembly is compiled with "Any CPU" as platform, i.e. to run as 32-bit and as 64-bit process?

2. DotNet version: 3.0, 3.5, 4.0 (or other)?

3. Can we use COM/OLE objects? For example:

context.Run(@"var fso, f;
   fso = new ActiveXObject('Scripting.FileSystemObject');
   f = fso.CreateTextFile('testfile.txt', true);
   f.WriteLine('This is a test.');
   f.Close();
")

Cheers!

re: that's interesting

maxscriptfactory · 2013-03-01

hi,
1.-2. my assembly is 4.0 (but could be 2-3-3.5, I've just been lazy to change it in settings) and any cpu. noesis assembly can be downloaded here: http://javascriptdotnet.codeplex.com/ and there are 32/64 and 3.5/4.0 versions in package.
3. no. as I said - it's just pure javascript and if you need anything advanced you have to inject it to context (in maxscript: context.SetParameter = some dotnet object).
I have plan to try it with https://github.com/fholm/IronJS also.
My assembly do the same - it  just provides print and execute commands to js context and raises event when function is called. (and this dotnet event is catched in maxscript)