force "Convert to Layers" to apply transformations?
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.
