I have slider control with over 300 keyframes with different values. I have 50 projects with the same keyframes of the slider but with different values. It would be a pain in a** if i needed to change the values manually. I have the data in an excel file so I was thinking maybe a script can use the data from the spreadsheet to change the values. I also have a different idea which is having the keyframe values linked to a txt layer and change those using the script text2spreadsheet. But I don't know how to link the keyframe values to a text layer.
I found the solution, which was much simpler. I'm sharing it now for anyone else who is in the same situation.
All you have to do is select all the keyframes, copy and paste them in an excel sheet. From there you can edit the values and paste them back to after effects with the new values.