Force DAT to text uppercase from lower case

Hi guys,

I’m pulling some text from a DAT into a text TOP but I’m wanting to have the text all be upper case but the data is all lower case. How would I go about setting the expression up? I understand that I can force text uppercase with ‘test’.upper() but how would I do this when pulling the text from a DAT?

To get upper case version of e.g. row 0 and col 0 it should be smth like
op(“some/dat”)[0,0].val.upper()

1 Like

Hi - I am trying to do the same thing, which parameter in the Text Top did you put this expression into?
Ive tried it in the DAT field and also the ‘Text’ field with no luck
Thanks!

I managed it using the expression in an ‘evaluate’ DAT

Hi @retone,

make sure the Text TOP’s text parameter is in expression mode when adding the python expression. TouchDesigner’s parameters have 4 possible modes they can be in: Constant, Expression, Export, and Bind. While numeric parameters will switch to expression mode if one is entered, string parameters (like the text parameter) will have to be set manually.

cheers
Markus