Comments (4)
So I put on my thinking cap... and realized that it almost already had the capability to do that if you just added a folder paths to the output.filename
. The only issue was that the output.filename
wasn't taken into consideration when making new directories, so PS wouldn't have known where to put the files. It needed a very small change and now it does!
So now starting from v.1.7 you can do something like this:
var output = {
path: './_output files',
format: 'jpg',
filename: '@input/@mockup - @input',
};
P.S. v.1.7 updated in the main repository and the standalone example
P.P.S. Having folder paths in
output.filename
does feel a bit weird, but it was easier to do that than to put the filename keywords intooutput.path
.
from batch-mockup-smart-object-replacement-photoshop-script.
I think you need to draw me like a diagram or something, for me to fully get it.
from batch-mockup-smart-object-replacement-photoshop-script.
Let me see if this helps...
Starting Folder Structure:
_output
inputfile 1.jpg
file2.jpg
file3.jpg
templates
template1.psd
template2.psd
template3.psd
Currently, if I set 'output.folders' to true, my output folder would look like
_output
template1
template 1 file 1.jpg
template 1 file 2.jpg
etc...
template2
template 2 file 1.jpg
etc...
My desired output would be the following
_output
file 1
template 1 file 1.jpg
template 2 file 1.jpg
template 3 file 1.jpg
file 2
template 1 file 2.jpg
template 2 file 2.jpg
etc...
Essentially, instead of grouping the output folder based on the 'mockup' or 'template' used, group by the input file used.
from batch-mockup-smart-object-replacement-photoshop-script.
Outstanding! I hadn't thought of using the filename functionality to handle creating folders, as the output.folder
property existed. I'll pull the new code and give it ago. Thanks for the update! 👍🏻
from batch-mockup-smart-object-replacement-photoshop-script.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from batch-mockup-smart-object-replacement-photoshop-script.