@capture java

Jan 3, 2010 at 4:51am

@capture java

Hello

I’d like to modify an mxj rendering to sketch (jit.gl.sketch) and give it
the attribute @cature to use in a gl.texture

Can somebody tell me how to write this code in java
I’m totally new to this !!!!!

I have tried

// create our sketch object
sketch = new JitterObject(“jit.gl.sketch”,”fluid_simulation”);
sketch.setAttr(“capture”,tex);

it doesn’t work

And have tried

// create our sketch object
sketch = new JitterObject(“jit.gl.sketch”,”fluid_simulation”, “@capture tex”);

Thank you for your help

MH

#47532
Jan 3, 2010 at 7:47am

Maybe something like this?
sketch=new JitterObject(“jit.gl.sketch”,new Atom[]{Atom.newAtom(“fluid_simulation”)});
sketch.setAttr(“capture”,”tex”);

#170980
Jan 3, 2010 at 5:46pm

Efe

I have tried the 2 lines you suggested. Maybe I did something wrong.
It didn’t seem to work.

Then I tried the last line you suggested as following

sketch = new JitterObject(“jit.gl.sketch”,”fluid_simulation”);
sketch.setAttr(“capture”,”tex”);

It works :-)

Thank you very much !

MH

#170981

You must be logged in to reply to this topic.