I would like to dynamically change the color of instance objects based on their rotation value using Geometry nodes.
Specifically, I'd like to do the following:
For each instance, detect its rotation (preferably Z rotation or a specific axis).
If the rotation is between 0–120 degrees, make the instance red. If the rotation is between 120–240 degrees, make it green. If the rotation is between 240–360 degrees, make it blue. I've tried using color ramp, but can't seem to map the rotation degrees cleanly to these ranges for the color output.
See attached Blender 5.0 Blend File






