HI
How to delete a group in Photoshop CC without deleting the contain of this group ?
I understand the Reference class is Layer set for a group.
How to do, using applescript ?
Thanks for your help
regards
Christophe
tell application "Adobe Photoshop CC 2017"
activate
set typeOfLayer to get properties of every layer of current document
tell current document
delete layer 1 -- it should be the layer group
end tell
end tell
Is “contain” supposed to be “contents,” (probably) or “container?”
I’m a little unclear if you want to move everything that was in the group out to the location of the current group, and then delete the group, or if you’re trying to delete a single subgroup without deleting the parent group?
Either should be possible, just trying to clarify before coding.
Hi
Sorry if it wasn’t clear.
In a group, i have two layers.
I want to move them outside the group (above this one) and after delete the group which is now empty.
Regards
tell application "/Applications/Adobe Photoshop CS6/Adobe Photoshop CS6.app"
set currentDoc to the current document
tell currentDoc
set layerSet to layer set "Group 1" --the layer set you want to delete
set layerSetElements to every layer of layerSet
move layerSetElements to after layerSet
delete layerSet
end tell
end tell