Graechan wrote:
Rod you could try this
Menu location layer/Scale Linked Layers
Attachment:
The attachment Scale Linked Layers.scm is no longer available
Is there a way to remove the Linked part of this? I am working with about 2000 layers and I dont want to have to link each and every layer individually since that is tedious....
Before I finished typing this I looked at the code and figured out I just had to remove an if conditional to accomplish this I shall share the modified file (hopefully the credit change I made is appropriate if not let me know).
EDIT: I found a bug that I need help fixing since I am not familiar with the syntax of script-fu (im really only familiar with c++ and java so I was able to figure out the above but not much else). I was scaling all of the layers up to 2000 px by 1 px and the one layer that already had that width messed up and increased to 3000 px by 1 px instead of being skipped since it was already the correct size. I assume I just need to add an if conditional into the while loop that says "if (get-width = new-width) then (if (get-height != new-height) then (scale-to-new-height)) else (if (get-height != new-height) then (scale-to-new-height-and-new-width) else (scale-to-new-width). Thanks for any help