Thursday, December 13, 2018

#1 2018-12-05 10:04:29 am

Chrismacteam
Member
From:: France
Registered: 2010-09-27
Posts: 57
Website

Delete layer group in photoshop CC

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

Applescript:

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


Infographiste Freelance Packaging

Offline

 

#2 2018-12-05 10:16:07 am

t.spoon
Member
From:: BFE, Massachusetts
Registered: 2013-01-13
Posts: 368

Re: Delete layer group in photoshop CC

Can you first clarify what you want?

How to delete a group in Photoshop CC without deleting the contain of this group ?



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.


Hackintosh built February, 2012 |  Mac OS Sierra
GIGABYTE GA-Z68X-UD3H-B3 | Core i5 2500k | 16 GB DDR3 | GIGABYTE Geforce 1050 TI 4GB
250 GB Samsung 850 EVO | 4 TB RAID
Dell Ultrasharp U3011 | Dell Ultrasharp 2007FPb

Offline

 

#3 2018-12-07 03:19:17 am

Chrismacteam
Member
From:: France
Registered: 2010-09-27
Posts: 57
Website

Re: Delete layer group in photoshop CC

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


Infographiste Freelance Packaging

Offline

 

#4 2018-12-07 01:41:48 pm

t.spoon
Member
From:: BFE, Massachusetts
Registered: 2013-01-13
Posts: 368

Re: Delete layer group in photoshop CC

This is working for me:

Applescript:

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


Hackintosh built February, 2012 |  Mac OS Sierra
GIGABYTE GA-Z68X-UD3H-B3 | Core i5 2500k | 16 GB DDR3 | GIGABYTE Geforce 1050 TI 4GB
250 GB Samsung 850 EVO | 4 TB RAID
Dell Ultrasharp U3011 | Dell Ultrasharp 2007FPb

Offline

 

#5 2018-12-09 04:17:55 am

Chrismacteam
Member
From:: France
Registered: 2010-09-27
Posts: 57
Website

Re: Delete layer group in photoshop CC

Hi
Thanks !!
It's work fine for me also
Regards

PS : i don't know how to mark the post as resolved


Infographiste Freelance Packaging

Offline

 

#6 2018-12-09 12:19:49 pm

t.spoon
Member
From:: BFE, Massachusetts
Registered: 2013-01-13
Posts: 368

Re: Delete layer group in photoshop CC

I don't think Macscripter has a way to mark posts as resolved.

Glad it's working.


Hackintosh built February, 2012 |  Mac OS Sierra
GIGABYTE GA-Z68X-UD3H-B3 | Core i5 2500k | 16 GB DDR3 | GIGABYTE Geforce 1050 TI 4GB
250 GB Samsung 850 EVO | 4 TB RAID
Dell Ultrasharp U3011 | Dell Ultrasharp 2007FPb

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)