![]() ![]() ![]() Var sizeValue = size / layer.height * 100 Lyr.width = bounds.getDouble(stringIDToTypeID("width")) Lyr.height = bounds.getDouble(stringIDToTypeID("height")) Lyr.id = desc.getInteger(stringIDToTypeID("layerID")) TempIndex = desc.getInteger(stringIDToTypeID("itemIndex")) īounds = desc.getObjectValue(stringIDToTypeID("bounds")) Ref2.putIndex(charIDToTypeID('Lyr '), targetLayers.getReference(i).getIndex() + 1) TempIndex = desc.getInteger(stringIDToTypeID("itemIndex")) - 1 Ref2.putIndex(charIDToTypeID('Lyr '), targetLayers.getReference(i).getIndex()) Var targetLayers = executeActionGet(ref).getList(stringIDToTypeID("targetLayers")) įor (var i = 0 i < unt i++) Ref.putEnumerated(charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt')) Ref.putProperty(stringIDToTypeID("property"), stringIDToTypeID("targetLayers")) Ref1.putIdentifier(charIDToTypeID('Lyr '), id) ĭesc1.putReference(charIDToTypeID('null'), ref1) ĮxecuteAction(charIDToTypeID('slct'), desc1, DialogModes.NO) To use it save this to a FileName.jsx to your Photoshop/Presets/Scripts folder, restart PS and you'll find name in the File > Scripts > FileName menu. Here's the script result (I was changing all layers to height of 50px):Īnd the script itself. The idea is to iterate through selected layers and proportionally scale them depending on their height. There's no a function like this in vanilla Photoshop to my knowledge, I'd go with a script: it's quite straightforward. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |