Hi,
The concept of my work is to display how many taps from my TouchOSC.
The flow is like:
osc in (CHOP) >Count (CHOP) > “Chop reference” in text parameter > Text (SOP).
Everything works fine, but it just display in the text like “3.0”
Is there another ways I can remove decimal number “.0” in the Text (SOP)?
Many Thanks!
try to add int() to your chop reference to use only the integer part.
for example int(op(‘count1’)[‘chan1’])
1 Like
It works! Many THANKS!
Is it the language of Python? How can I get to know this?
Thanks!
Hi Kenneth, great to hear it was helpful.
Yes this is python.
Usually I just search on google for “python integers”, or “python dictionary” or “python something” and there are plenty of websites showing up.
I like to use stackoverflow website for more complex questions and syntax Newest 'python' Questions - Stack Overflow
This forum is also a good source of material, I’d suggest to keep one on it, there are some great tips generously exchanged here.
And then, within TouchDesigner itself you can go to Help-> Python Help for more material and useful links, or Help->Python Examples which will open a new TD network with some examples…
have fun!!