newbie - Still need basic help to start.

Dg's icon

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();
}

Max Patch
Copy patch and select New From Clipboard in Max.

Dg's icon

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.

Dg's icon

!! Merci Vanille béchamel !!

trammaster's icon

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.