Skip to main content
Participant
Feb 19, 2025 2:01 PM UTC
Answered

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

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

Mathias Moehl
Mathias MoehlCorrect answer
Community Expert
Feb 19, 2025 7:14 PM UTC

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

2 replies

Mathias Moehl
Community Expert
Mathias MoehlCommunity ExpertCorrect answer
Community Expert
Feb 19, 2025 7:14 PM UTC

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.

Translate
Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
nishu_kush
Legend
Feb 19, 2025 6:42 PM UTC

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

Translate