Stuck on this tutorial, help .

Been following the very cool tutorials by Mathew

matthewragan.com/2014/04/27/insp … hdesigner/
and I am stuck here, this expression doesn’t seem to work -

On following tutorials I always seem to get stuck on expressions, we need someone to give us tutorials on how these work… I am learning python but for example I don’t know what v1 is?
I suspect the problem is here.

thanks for the help.

Actually On jumping to another tutorial I also got stuck on some Python code.
link -TouchDesigner | These are the DATs you’ve been looking for – Matthew Ragan

so the python code doesn’t work for me when I run it.

op( ‘slider1/out1′ ) [ 'v1' ]

‘v1’ is the name of the channel in the CHOP named ‘slider1/out1’.
Are you seeing any errors?

Which version are you running? The current experimental has a bug with appendRow.
We’ll be putting out a new version quickly.

Thansk
Rob.

hi mmachine,

Expressions are a little wonky to get a handle on, so I’m right there with you when it comes to really understanding how they work.

Here’s a toe file with the network from the second tutorial that you were working on, hopefully this will make it easier to see what’s happening in this network:

[url]http://raganmd.files.wordpress.com/2014/03/record_method_example.zip[/url]

I’ve been thinking a lot about what to write about next, and it seems like a better explanation of how referencing and expressions work might be useful to folks - is this something that you would find helpful?

best,
m

hi mmachine,

just finished writing something to try and do a better job of explaining referencing and expressions. It’s not very sexy reading, but hopefully it will shed some light on what I’m always going on about when I write about using python expressions to connect operators.

[url]http://matthewragan.com/2014/06/01/understanding-referencing-touchdesigner/[/url]

cheers,
M

HI Mathew, thank you very much for the help and tutorial- :slight_smile:
I got discouraged with not being able to get the expressions to work, so I took a break from touch, but upon seeing your post today I am jumping back on it!!!
thank you.

Great tutorials, Matthew, truly great!

I’m glad they’re useful!

I was on a roll the other week while I had some down time in the North East. Here’s a second installment about referencing
[url]http://matthewragan.com/2014/06/27/understanding-referencing-part-ii-touchdesigner/[/url]

I wanted to drop this here, as i had the exact same problem years later, after previously acing the tutorials one by one. Just realized -after staring blankly for an hour at the screen, going through all other referencing tutorials one by one, and feeling depressed!- that the problem lies in simple syntax error caused by ’ instead of " (in my case). Might be helpful to total noobs and people with no code background.

so everything went back to its normal for me after changing:

op( ‘slider1/out1′ ) [ ‘v1’ ]

to

op( “slider1/out1” ) [ “v1”]

:unamused: