Forums > Javascript

newbie – Still need basic help to start.

July 29, 2009 | 3:29 pm

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("jit.gl.render","ex");
var plan = new JitterObject("jit.gl.gridshape","ex");
plan.shape = "plane";
plan.scale = [0.3,0.3,0.3];

var taille = plan.scale;

function grandeur(v)
{
taille=v;
}

function bang()
{
rend.erase();
rend.drawclients();
rend.swap();
}

– Pasted Max Patch, click to expand. –

July 29, 2009 | 8:15 pm

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.


August 4, 2009 | 2:35 pm

!! Merci Vanille béchamel !!


September 28, 2009 | 4:52 am

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.


Viewing 4 posts - 1 through 4 (of 4 total)