newbie – Still need basic help to start.

Jul 29, 2009 at 3:29pm

newbie – Still need basic help to start.

I want to change the scale of my plane via JS,
Lots of attempts – No success for the moment.

var win = new JitterObject(“jit.window”,”ex”);
var rend = new JitterObject(“”,”ex”);
var plan = new JitterObject(“”,”ex”);
plan.shape = “plane”;
plan.scale = [0.3,0.3,0.3];

var taille = plan.scale;

function grandeur(v)

function bang()

– Pasted Max Patch, click to expand. –
Jul 29, 2009 at 8:15pm

I think the (v) is not good, and don’t know how to pass a list from the patcher to the function and then to the variable.

I worked on portion of code harder than this, and I’ve seriously worked on the tutorials but I can’t read all the documentation at once, and there is no step by step tutorial on JS in Max.

Any help, tip, would be greatly appreciated.

Jul 30, 2009 at 8:35am

hello Kyred,

here, a simple way with a single value ;

but, if you want to pass a list to a function, i like to use something like that :

function toto ()
var tableau = arrayfromargs (arguments) ;
post (tableau, tableau.length) ; // for exemple.

and send “toto 1 2 3 4″ etc… as a message.


Aug 4, 2009 at 2:35pm

!! Merci Vanille béchamel !!

Sep 28, 2009 at 4:52am

Hi! I am posting my ads on my trampolines site. But there is something missing. I mean the site is not as good as before. and it says enable javascript. I dont know where to find that one. Can somebody on this forum help me. thanks.


You must be logged in to reply to this topic.