• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

how to use layer.merge() function which is newly added since v23

New Here ,
Nov 04, 2022 Nov 04, 2022

Copy link to clipboard

Copied

a new function, layer.merge() is added since photoshop API ver23.

but the documentation doesn't have enough description of how to use this function.
https://developer.adobe.com/photoshop/uxp/2022/ps_reference/classes/layer/
"merge" in this doc is missing sample code and the parameter descriptions.
 
and I cannot find any photoshop-UXP code examples which use this new function layer.merge() .

Does anyone know how to use
layer.merge() ?

the API reference doc says that all layers to be merged need to be selected before they are merged.
I understood it as all merging layers need to have its property, 'selected" to be true.
"layer.selected = true"
but after layers selection, how can I execute layer.merge() to merge the selected layers?

TOPICS
Scripting

Views

412

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Nov 08, 2022 Nov 08, 2022

Copy link to clipboard

Copied

LATEST

I would look at this page: https://developer.adobe.com/photoshop/uxp/2022/ps_reference/#layer  Scroll down to the "Layer" section and you will see an example using layer.scale(80,80). I would replace that with layer.merge() and give it a try.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines