Is it possible to obtain or calculate skew (skewX, skewY) transform from smartObject.
I can get information about object vertices using smartObjectMore.transform and calculate rotation like in this example https://forums.creativeclouddeveloper.com/t/access-smartobject-transform-properties/5349/6, but don’t know how to get skew.
Sadly using transform corner points is exactly what you need to calculate with.
I haven’t been doing UXP for a while so I forget what’s in the transform object, but I believe the skew info is in the smartObjectMore.nonAffineTransform section. I think it’s like rotation though in that you have to manually compare the affine transforms points compared to the default dimensions to calculate what kind of skew is going on.
The vertex coordinates in transform and nonAffineTransform are exactly the same. Scale, skew and rotation have been applied to the object. I did not find how to separate and extract this data, although it is visible in the info panel when pressing ctrl + t