Last active
March 20, 2022 05:39
-
-
Save msongz/e65a1f61c673865d737ca89e3ceafd8c to your computer and use it in GitHub Desktop.
batch change project items size, like:null, comp, etc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.beginUndoGroup("resize null"); | |
var s = app.project.activeItem.selectedLayers; | |
var o = Number(prompt("new size", 100)); | |
for (var i = 0; i < s.length; i++) { | |
try { | |
s[i].source.width = s[i].source.height = o; | |
} catch (e) {} | |
} | |
app.endUndoGroup(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment