Sending an int from text dat to chop

hey all,

I’ve a text node with some python code in it, connected to a gals multi: it detects faces. in that code, there’s an int faceCount, representing the amount of faces detected.

I now need to reference that value in an outside const chop, unsure about syntax though.

basically looking how send a variable created in code to an outside chop.

I’ve attached my project to make things clearer, I hope.



If I’m understanding your file, try something like this in your Python code:

if faceCount > 0:
  op('constant1').par.value0 = 1
  op('constant1').par.value0 = 0