All options
Settings script with all available options and their defaults
Option | Description |
output.path | Output path is created automatically. Accepted prefixes: |
output.format | Formats: |
output.zeroPadding | The padding is based on the amount of output images. |
output.folders | Each mockup outputs into a subfolder inside the output path. |
output.filename | Keywords: |
mockupPath | Path to the mockup psd. Accepted prefix: |
mockupNested | If your "mockupPath" points to a folder, this makes it search for PSD and PSB files from every nested folder. |
input | This overrides the "input" setting in each smart object and instead sequentially distributes input files to the smart objects. |
inputNested | Normally the script looks for files in the input folders and no further, but with this setting enabled, it will look for image files from every single subfolder. |
inputFormats | Separate multiple formats with a vertical pipe. You shouldn't need to change this if you prep your input folders. |
hideLayers | Array of strings with unique layer names. These layers are hidden before any replacements are made in the mockup. |
showLayers | Array of strings with unique layer names. These layers are shown before any replacements are made in the mockup. Target smart object is always visible. |
noRepeats | If a mockup has multiple smart object targets, the script makes sure each of them uses the same amount of input files by repeating the existing input files as many times as needed to match the target with the most files. See noRepeats logic for more info. |
smartObjects | Array of objects. Each object represents one smart object target in the mockup. |
smartObjects[].target | Unique smart object layer name. |
smartObjects[].nestedTarget | Is used to more accurately position input file inside a |
smartObjects[].input | Path to the input file folder. Use array of strings to set multiple input file paths; |
smartObjects[].inputNested | Normally the script looks for files in the input folders and no further, but with this setting enabled, it will look for image files from every single subfolder. |
smartObjects[].inputFormats | Separate multiple formats with a vertical pipe. You shouldn't need to change this if you prep your input folders. |
smartObjects[].align | Logic: 'x y'. Values: 'left top', 'left center', 'left bottom', 'right top', 'right center', 'right bottom', 'center top', 'center center', 'center bottom' |
smartObjects[].resize | Values: false, 'fill', 'fit', 'xFill', 'yFill' |
smartObjects[].trimTransparency | Set this to false if you want resize to include transparent whitespace. Read more here. |
smartObjects[].inputPlaced_runScript | Trigger a script each time an input file is placed (still inside the smart object). You can use the scropt prefix: |
smartObjects[].inputPlaced_runAction |
|
Minimal settings script
This is the one I'd recommend you to use as a starting point. Use the one above as a reference only. It's easier to manage the settings script if you only include what you need.
Last updated