path constraint?

I have a hexagon that rotates around a not centered pivot point and I need to keep the green point always on the hexagon but should not move in x direction and it only can move in y direction (go up and down) as the hexagon rotates.
Is this something that can be done through scripting or it can be achieved without scripting?
Thanks,

AttachmentSize
hexagon.jpg90.49 KB