Jit.gl.multiple in java – possible?

Feb 15, 2012 at 6:12pm

Jit.gl.multiple in java – possible?

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

}
}

#61798

You must be logged in to reply to this topic.