How to save the X/Y values of a picture to variables

I just want to know how I can access the X and Y coordinate values in RPG Maker MZ and save them to a variable. :]

these are script calls, its in the picture properties part scroll down a lil and the coding is on the far right, u may have to scroll right
I think the script call list is easier to read/navigate when not embedded:
These are the script calls for X/Y coordinates of picture ID 1:
  • $gameScreen.picture(1).x()
  • $gameScreen.picture(1).y()
These are measured in px, from the top-left of the screen (0, 0) to the origin point of the picture. You can use these script calls in Control Variables -> Script.

[Edit: added the missing brackets on x and y. 😴]
I think the script call list is easier to read/navigate when not embedded:
These are the script calls for X/Y coordinates of picture ID 1:
  • $gameScreen.picture(1).x()
  • $gameScreen.picture(1).y()
These are measured in px, from the top-left of the screen (0, 0) to the origin point of the picture. You can use these script calls in Control Variables -> Script.

[Edit: added the missing brackets on x and y. 😴]
Thank you for the help :] I used the script call incorrectly but now using it properly.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-save-the-x-y-values-of-a-picture-to-variables.153279/