Copy link to clipboard
Copied
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.
@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?
Copy link to clipboard
Copied
@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?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now