Trying to move a source on a grid one step at a time

125 views
Skip to first unread message

Pierre Corsy

unread,
Apr 10, 2015, 12:54:58 PM4/10/15
to ligh...@googlegroups.com
Hi !

I'm trying to make a xbox controller work with lightjams, using OSC and TouchDesigner.
I have good results so far, but I'm limited by my modest knowledge about formulas...

What I'm trying to do right now is to move a source one position at a time when pressing a button already assigned to an OSC value, and make that source stays at its new position. I should be able then to move it one position forward everytime I push the button.
I can move it using several basic formulas, but each time the position of my source is resetting as soon as I'm not pushing the button anymore, and I haven't figure how to keep it still.

My last try was this formula, and I believed I was on a good path but still : it doesnt work yet...

NOT WORKING // xtopercent(counter(0, grid.lastX, onbeat(osc(17)), 0, grid.onactivated))

Do you have any idea of how to do that ?

Mathieu

unread,
Apr 11, 2015, 9:35:58 AM4/11/15
to ligh...@googlegroups.com
>> xtopercent(counter(0, grid.lastX, onbeat(osc(17)), 0, grid.onactivated))

This function should be ok. If it's resetting when you're not pushing a certain button, try removing the grid.onactivated (which is what resets the counter). This also means that the grid's activation has been linked to your button. So you may need to remove that if this is unwanted.
Reply all
Reply to author
Forward
0 new messages