Grab colorr value from Constant TOP and insert into Text DAT

Hello. Still very new and can only really operate/build by drag and drop and letting TD make formulas for me.

I am trying to figure out how to grab the RGB values from a Constant TOP and put those numbers into a Text DAT or use them in other python scripts but I don’t know what they’re called or what syntax to use to grab them…

Where do I find a list of things I can pull from operators? Like I know colorr colorg colorb are in there but I can’t find anything in the Help on how do I actually access and use those values? op(‘contstant1’).val[‘colorr’] or something like that? I don’t know -any- python.

Thanks!!

Figured this one out by dropping things onto other things and looking at what TD made.

(op(‘constant1’).par.colorr, op(‘constant1’).par.colorg, op(‘constant1’).par.colorb)

Parameters of operators are accessed with the par object. You were very close:

op('constant1').par.colorr or op('constant1').par['colorr'] both work

1 Like