Skip to main content
Flowgun
Inspiring
August 27, 2025
Answered

force "Convert to Layers" to apply transformations?

  • August 27, 2025
  • 1 reply
  • 120 views

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.

Correct answer creative explorer

@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?

1 reply

creative explorer
Community Expert
creative explorerCommunity ExpertCorrect answer
Community Expert
September 8, 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?

m