How do we know if a smart object can retain transforms with UXP?

Hi everyone,

I’m building a plugin which needs to convert smart objects into layers. Currently, I’m converting all of them. However, some of them completely mess up the file when converted. They are the ones for which transforms cannot be retained, so the retainTransform: true does not do anything. Is there a way to know before the conversion if an embedded smart object can indeed have its transforms retained?

Thank you!