move CC automation node to beginning of midi part

Ok this is a shot in the dark, but I’m hoping any of the Macro building masters on this forum might be able to help me on this…

Is there any quick macro way to select the automation node that is furthest to the right in a midi part and move it to the beginning of the part, then delete other midi automation in the same lane?

The reason I ask is because the way I set, say, volume automation levels on a midi part is by recording myself moving faders until I’m at the level I like, then moving the last automation node that was recorded to the beginning of the part and deleting the rest of the automation on that lane.

Hope that makes sense

Any thoughts would be helpful
Thanks!
-Dylan