Move based on bounding box, not document

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

davidnielsen

Move based on bounding box, not document

Post by davidnielsen »

Hi there.

As someone who is a digital painter primarily, I am very new to scripting and code in general. Looking to make a very basic script that moves a selection based on percentage Not of document bounds, but of the image itself. From what I understand, what I need to do is get the selection bounds, then call for the move.

I'm trying to make an Action that uses this script to iterate different Gradient Maps and array them in a contact sheet. The action takes care of everything EXCEPT the move since as far as I can tell there is no percentage based move in Photoshop, besides one that references document bounds.

Would be extremely grateful for the code to do this!

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

pfaffenbichler

Move based on bounding box, not document

Post by pfaffenbichler »

Could you please explain the result you are trying to achieve better, maybe with a screenshot or mock-up?