ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

get mouse cursor x and y location in script

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
sheikh ghanee
get mouse cursor x and y location in script
on Apr 22, 2020 at 11:38:56 am

Hi,

I'm doing scripting for a small tool with a UI. I have bound it with a shortcut key. I'm using these lines to position the window and show the window,


MyToolPanel.frameLocation = [50, 150];
MyToolPanel.show();


now i need to get the cursor x and y coordinates, so that I can pass it to 'myToolsPanel.frameLocation' using a variable.

I'm new to scripting tools. I couldnt find any references on web.

need help to get cursor x and y coordinates inside the script.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]