NEICO
July 15, 2020, 7:41pm
1
Hi
I’ve followed a couple of videos which makes it look really simple and although I think I’ve followed it correctly, I’m still not seeing the text change in Resolume. Incoming port and osc path are correct so there must be something I’m missing. Help please and thank you
def onTableChange(dat):
oscstring = op(select1').cell(0,0)
oscpath = '/composition/layers/3/clips/2/video/source/blocktextgenerator/text/params/lines'
op('oscout1').sendOSC(oscpath, [oscstring])
return
snaut
July 18, 2020, 11:34pm
2
Hey @NEICO
are you able to receive osc when using an OscIn DAT in another instance of TouchDesigner?
Cheers
Markus
snaut
July 19, 2020, 10:51pm
4
Hey @NEICO ,
so now the question would be if the format is correct for Resolume. Not sure what they expect on their side?
Cheers
Markus
NEICO
July 20, 2020, 4:28am
5
You should just be able to copy the osc input path from the text block in Resolume and paste as above but there’s something missing.
snaut
July 20, 2020, 4:35am
6
makes me wonder if perhaps resolume expects a float
or int
for a “lines” parameter and ignores the string it currently receives? You can try by
def onTableChange(dat):
oscstring = op('select1').cell(0,0)
oscNumber = int(oscstring)
oscpath = '/composition/layers/3/clips/2/video/source/blocktextgenerator/text/params/lines'
op('oscout1').sendOSC(oscpath, [oscNumber])
return
Can you get it to work for the text parameter at /composition/layers/3/clips/2/video/source/blocktextgenerator/text
itself?
cheers
Markus
NEICO
July 20, 2020, 5:16am
7
Thanks, I’ll give that a go tomorrow and let you know