How to test if a new layer was created inside a group?

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Kukurykus, Tom, xbytor

skrippy
Posts: 14
Joined: Sun Nov 27, 2016 5:34 am
Location: EU

How to test if a new layer was created inside a group?

Post by skrippy »

I'm really looking for a way to avoid the classic problem of a merged layer to appear inside a group when that command was given with an open group selected... (AFAIK, you can't first close a group by script either?)

If I can test if the MERGED LAYER was created inside a group, I can move it out before continuing.

I know this is not fool proof for any situation but it would solve most of it for my typical use.

Thanks!

skrippy
Posts: 14
Joined: Sun Nov 27, 2016 5:34 am
Location: EU

Re: How to test if a new layer was created inside a group?

Post by skrippy »

Oops...

I'm not really needing this.

I thought I did because I was not using the best way to create a merged layer in all cases...

Sorry! :oops: