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

force "Convert to Layers" to apply transformations?

Participant ,
Aug 27, 2025 Aug 27, 2025

Scenario: we have a smart object that we applied some transformations to it.
When we right-click it manually, and choose "Convert to Layers", it prompts us to apply the transformations or not.
When we do it programmatically with:
executeAction(sTID('placedLayerConvertToLayers'), undefined, dialogMode)
we don't have the choice to apply the transformations or not. The last choice that we've done manually is what applies.

Is there a way to programmatically Convert to Layers while always applying the transformations?

Edit: when the Smart object contains more than 1 layer, keeping transformations seems to be impossible. I think a good way to do it is to read the transformation matrix, convert to layers, and then reapply those transformations back to the resulting layer/group, but I was unable to do that also.

TOPICS
Actions and scripting
88
Translate
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

correct answers 1 Correct answer

Community Expert , Sep 07, 2025 Sep 07, 2025

@Flowgun Unfortunately, there's no way to programmatically force the "Apply transformations" option with that specific action. Your instinct to manually read and reapply the transformations is the correct approach to ensure consistency. Maybe JavaScript will ned to be done?

Translate
Adobe
Community Expert ,
Sep 07, 2025 Sep 07, 2025
LATEST

@Flowgun Unfortunately, there's no way to programmatically force the "Apply transformations" option with that specific action. Your instinct to manually read and reapply the transformations is the correct approach to ensure consistency. Maybe JavaScript will ned to be done?

Translate
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