I am trying to create a personal script, to put the tools I use most together, and I would like to add a button that saves a screenshot of the active composition in a given folder from my computer... Is there a way to make this using scripts? This means that I will need a settings button where I have to input the folder where I need the images to be saved and a second button that saves the image in png format.
Can anyone help me, please?
If you are looking for a screenshot of your whole application that is with your timeline etc... I'm don't think you can do that within after effects. You need another application.
On windows I use snipping tool, or record my whole screen using OBS.
On the other hand if you want just the compisition, You could simply use Composition -> Save frame as.
It will add to the render queue. You can create a default template so it automatically makes a png to a location of your choice.
But then you'll have to render your queue.
However I'm pretty sure you can also automate that process through a script so that it does all that at the click of a button.