Skip to main content
Participant
February 19, 2025
Answered

Is there a script I can get or make to paste a particular image at the exact cursor position.?

  • February 19, 2025
  • 2 replies
  • 228 views

I would like to make a weather map graphic with lots of symbols and pasting them all over the map takes me ages. I just want to select an item from the project folder window and then click wherever I want in the project window and the image would be pasted into that position. Is there a paste image at cursor position plugin or something I could use to aid me in this?

Ideally a scale option would also be handy but as long as the centre position is central then I could always scale them down after if they pasted in too big!

Any help would be appreciated.

Mac

Correct answer Mathias Moehl

As far as I know, Ae scripts have no way to retrieve the cursor position.

As a workaround, you could insert a null layer, say as first layer of the comp, and drag it to the position where you want to insert.

Then you could execute a script, which inserts + scales a new layer at the position of the first layer and then selects the first layer again such that you can easily grab and move it again for the next round.

2 replies

Mathias Moehl
Community Expert
Mathias MoehlCommunity ExpertCorrect answer
Community Expert
February 19, 2025

As far as I know, Ae scripts have no way to retrieve the cursor position.

As a workaround, you could insert a null layer, say as first layer of the comp, and drag it to the position where you want to insert.

Then you could execute a script, which inserts + scales a new layer at the position of the first layer and then selects the first layer again such that you can easily grab and move it again for the next round.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
nishu_kush
Legend
February 19, 2025

Thanks for writing in, Maciej34414097jjtw.

Give Chat GPT a try. It has helped some users in creating scripts from scratch for After Effects.

Let us know how it goes.

 

Thanks,
Nishu