hello
i use touchdesigner now from two years essentially for vjing, and i’am the happy owner a fresh licence of touch
iam trying to change the color of my particles according to their age, with a ramp of three or four different colors, but i’am absolutly not familiar with python and coding in general.
i’m pretty sure that i should use a point sop and add texture, but i have no idea what to do after that .
if someone could help me i would greatly appreciate
sorry for my bad english, i’am french
likid
hi
so i found myself a first step
i succeed to do something close in learning a bit of python’s logic
so i used
me.inputPoint.life[0]*op('constant2')[chan1]
into each red, green and blue paremeter of ‘Add color’ of the point SOP, with a different channel of a constant for each color.
i’am still looking for a faster way because its very slow, and the possibility to use a ramp TOP
if someone could helps…
thanks
partciles colors age.toe (6.06 KB)
I’d think about doing this in chops - you can get life out a of a sop to CHOP by including ‘life’ in the scope, and then providing two names - life returns a tuple.
Hi Likid,
I took a stab at this to help speed things up by using a rampTOP and a lookupCHOP to color the particles according to their age.
There are a few notes in the file but feel free to let me know if you have any questions.
Thanks!
Brain.
particlesColorAgeBA.tox (5.1 KB)