Moving an image once pasted in a macro

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Moving an image once pasted in a macro

Neil Kad
Hi Everyone,

I'm trying to write a macro that allows the user to paste an image and then move it. So far I can paste the image no problem, I then halt the program with a 'waitforuser' command but I cannot now move the pasted object. I want to be able to do this and then use 'getSelectionCoordinates(x, y)' to find the top left corner position of the pasted image.

Here is the code to get this far:

setPasteMode("Blend");
run("paste");


waitForUser("adjust paste position");

getSelectionCoordinates(x, y);
print(x[0]+" "+y[0]);

Is there any way of being able to move the pasted image after the run("paste") command?

Thanks

Neil