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

Photoshop API Multiple smart object edits

Community Beginner ,
Sep 08, 2023 Sep 08, 2023

Copy link to clipboard

Copied

Hi,

 

I'm currently trying to swap out multiple smart objects within one document. Does anyone know if this is possible or would I have to send multiple api posts?

I've got my script working with just one smart object but can't work out if I can do multiple edits.

This is my current script and how i'd imagine it working with two smart object swaps. I don't get any error codes but I don't get an output image. Thanks in advance.


{
"inputs": [
{
"href": "{{steps.Get_Master_PDF_Doc.$return_value[0].link}}",
"storage": "dropbox"
}
],
"options": {
"layers": [
{
"edit": {},
"input": {
"href": "{{steps.Gather_Front_File.$return_value.link}}",
"storage": "dropbox"
},
"smartObject": {
"name": ".1"
},
"name": ".1",
"type": "smartObject"
},
{
"edit": {},
"input": {
"href": "{{steps.Gather_Left_File.$return_value.link}}",
"storage": "dropbox"
},
"smartObject": {
"name": ".2"
},
"name": ".2",
"type": "smartObject"
}
]
},
"outputs": [
{
"storage": "dropbox",
"href": "{{steps.Create_Upload_Link.$return_value.psdUploadLink.link}}",
"type": "image/vnd.adobe.photoshop"
}
]
}

TOPICS
Actions and scripting , SDK

Views

117
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
no replies

Have something to add?

Join the conversation
Adobe