How to remove Smart Object deformation with scripting?

  • 3
  • Question
  • Updated 1 year ago
I want write script which removes deformation from smart objects.

In CC 2017 you can read smart objects corner points. But you can't move corner with script to certain position. You need only specific code.

This is my concept how to achive what I want



Some usefull math: https://www.tutorialspoint.com/computer_graphics/2d_transformation.htm

Any Ideas how to achive my goal? Is this only one way how to remove smart object deformation? Or am I missing something?

In addition I would like to update my "Unsmart" script. http://bereza.cz/ps/


Photo of Jaroslav Bereza

Jaroslav Bereza

  • 779 Posts
  • 166 Reply Likes

Posted 1 year ago

  • 3
Photo of Max Johnson

Max Johnson, Champion

  • 450 Posts
  • 208 Reply Likes
Thanks for the in-depth screenshot of what you are doing! I was interested in this as well, but could never get anything that made sense...
Photo of Jaroslav Bereza

Jaroslav Bereza

  • 779 Posts
  • 166 Reply Likes
Solved. Download here: http://bereza.cz/ps/index.html#undeform

If there is some smart math guy I can add support for perspective. I know how change perspektive, but I don't know exactly what single number means.

Eventually, I rejected counting with vectors. I used vectors.