Forums > MaxMSP

Jit.gl.multiple in java – possible?

February 15, 2012 | 6:12 pm

Hi,

Now I’m looking for the way to use my gridshape in java.
I’ve started with this, but not able to figure out how to send matrix in the inlet of jit.gl.multiple and how to indicates which inlet …

Any example would be appreciated.

Thx.

import com.cycling74.max.*;
import com.cycling74.jitter.*;

public class javasimplejitglmultiple extends MaxObject
{
JitterObject mycircle;
JitterObject mymultiple;
JitterObject noisepos;
JitterObject noisescale;

public javasimplejitglmultiple(Atom[] args)
{

mycircle = new JitterObject("jit.gl.gridshape",new Atom[]{Atom.newAtom("cosm")});
mycircle.setAttr("shape", "circle");
mycircle.setAttr("lighting_enable",1);
mycircle.setAttr("smooth_shading",1);
mycircle.setAttr("name","cir");

mymultiple = new JitterObject("jit.gl.multiple",new Atom[]{Atom.newAtom("cosm")});
mymultiple.setAttr("targetname", "cir");
mymultiple.setAttr("glparams", "2");//scale & position inlets

}
}


Viewing 1 post (of 1 total)