Answered
Photoshop & Table
Hi Dears
How can I read layer names and group names from a table automatically in Photoshop?
I want automatic create empty layers and empty groups in photoshop from a table.
Photoshop version: 2021
Platform: Win 10
Regards
Hi Dears
How can I read layer names and group names from a table automatically in Photoshop?
I want automatic create empty layers and empty groups in photoshop from a table.
Photoshop version: 2021
Platform: Win 10
Regards
I want to create groups called countries (Country Names) and also create 4 anonymous layers within groups.
with(File('~/desktop/Country GroupName.txt'))
open('r'), r = read(), close(); arr = r.split('\n')
aD = documents.add(), sTT = stringIDToTypeID
runMenuItem(sTT('screenModeFullScreen'));
(wndw = new Window('palette'))
txt = wndw.add('statictext',
undefined, arr.length)
wndw.show()
while(arr.length) {
a = 4; if (pop = arr.pop()) {
with(aD.layerSets.add()) {
name = pop; while(a--)
artLayers.add()
}
}
txt.text = arr.length, wndw.update()
}
wndw.close(), runMenuItem(sTT('collapseAllGroupsEvent'))
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.