Change path color based on position / sample data

Hello there,

I’m trying to change the color of the path for a entity based on some attributes of the position data sources, like blue for isClimbingOrSink (SINK) and red for CLIMB…

Sandcastle example