Hey Guys,
So first of all: Hi! My Name is Simon and I'm new to this forum and also pretty new to the Houdini world. Until now i did all my work in Cinema4D, but since i always liked to work very technical and play around with vectors, matrices and other stuff that a lot of people are scared of, i took a closer look at Houdini. And so far i love it. For practise, i try to rebuild some of my tools and setups i created in C4D using XPresso and Thinking Particles.
So i rebuilt a setup i made a few years ago (vimeo.com/52803528) where particles spawn on an object and are only allowed to make direction changes in 90° angles to build a gridlike structure. That part works great so far.
As a small addition, i wanted to colorize my trails based on their length. So for example that the tip is always green and the end is red. So basically a gradient over the length of the trail. Last week i found out that i can use the expression $PCT in a sweep node to get a value between 0 and 1 over the length to the backbone curve to scale the crossection. So i thought i could also use this expression to colorize the trails with a gradient. Sadly it seems, that this expression only works in the sweep node. Maybe i'm also wrong and overseeing something.
So if not, is there a simple way to colorize curves with a gradient based on their length? So that the start has color A and the end has color B?
Cheers,
Simon