ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

get mouse cursor x and y location in script

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


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.


Posts IndexRead Thread 


Current Message Thread:





© 2020 CreativeCOW.net All Rights Reserved
[TOP]