Sorry for the basic question, but I’m using LineSeg to have my object trace out a line as it moves. I’d like the line to fade away after a certain amount of time, so I figured I would change the alpha value, but I can’t seem to write something that works. GeomNode doesn’t have a setColor function, and when I try to call setColor on the NodePath containing that GeomNode, nothing happens. Incidentally, when I try to call getColor on that NodePath, I get an error message “:pgraph(warning): get_color() called on render/path which has no color set.”
I tried looking deep into GeomNode and I see that it stores the color in VertexData, but a) I couldn’t get a modifiable reference to the VertexData and b) it feels way too low level to have to modify VertexData to get the color I want. Surely there’s a better way?