maxJs

1 vote
Version: 
0.01
Date Updated: 
02/27/2013
Author Name: 
Pavel Vojacek

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
maxscriptfactory's picture

examples

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

maxscriptfactory's picture

check out my website from

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

fajar's picture

could you give us some

could you give us some example?

maxscriptfactory's picture

re: that's interesting

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)

Anubis's picture

that's interesting

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!

my recent MAXScripts RSS (archive here)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.