Question about variable in Jit.expr
Just wondering a basic question, how to grab the elements our of a jit.expr as variables.
I know how to do that for expr, but with jit.expr @expr, the $f1 and $f2 not works.
the original one:
jit.expr @expr (norm[0]*5) 2*cos(norm[0]*TWOPI) 10 2*sin(norm[0]*TWOPI
what I tried to do:
jit.expr @expr (norm[0]*5) $f1*cos(norm[0]*TWOPI) $f2 $f1*sin(norm[0]*TWOPI
I want to change $f1 and $f2 out of this object. But the nodes inputs was not appearing. Not like a expr object.
Not behind the computer but i think you need to replace $f1 with in[0].
Check the tut page demystifying expressions in jitter. The downloadable patches show some very clear examples.
Thank you Andro, I solve it!
Glad to hear it. Just a tip. Select everything in your patch then go to edit/ copy compressed. Then paste into the forum.