Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Skew Smart Object Edges to Fixed Locations

Engaged ,
May 13, 2019 May 13, 2019

Hello everyone,

I'll try to explain with pictures what I'm trying to achieve.

I have this blue smart object:

and i want the blue layer edges to be same as the red ones edges.

the resolution is always the same: 3168x2059 and i also mentioned the exact percent of the red that I want.

the red in the picture is perfect. I manually adjusted it exactly like I want. I just need to automate it.

if it's not clear enough:

TOPICS
Actions and scripting
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
May 14, 2019 May 14, 2019

I suspect if you already have a Smart Object that’s transformed as intended it would be easier to (New Smart Object Via Copy and) Replace Contents.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 14, 2019 May 14, 2019

I think that may not even work. From the images posted its looks like their blue smart objects has been scaled, rotated,  and distored so the layer associated has changes the object appearance. You do not even know if the object has a rectangle shape or if the content has transparency around any edge.  They gave pixels width and height as resolution that is not resolution and replace content uses Photoshop Place which will resize an image  based on the document's and image file's print resolutions. If you open the object and it open in Photoshop the work document will have a rectangle canvas. If you fill it with an image or color it may well be a different shape than the contents of the original object. When the layer's smart object is updated. The updated smart object layer may not match the blue object's appearance.

JJMack
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 14, 2019 May 14, 2019
I think that may not even work.

I guess AG_Ps_100  should provide the file so we can see for ourselves what the state of the elements. is.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 14, 2019 May 14, 2019

these are the original files:

DSC_0477.png Transform1.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 14, 2019 May 14, 2019

Ah, I had misunderstood and assumed the SOs were rectangular and transformed and did not already contain a perspectival distortion.

I fear that may practically not be automatable with Photoshop Scripting in a meaningful manner.

But maybe someone else has a better grasp on the geometry and math of the task.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 14, 2019 May 14, 2019

I have the same rugs pictures taken from above, and recording an action to transform the rectangle to this quadrangle is easy, it just looks not very realistic.

I'll ask a different question, is there a way to turn this:

Transform1.png

to this:

Transform2.png

because afterwards it shouldn't be hard turning it back to what i want

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 14, 2019 May 14, 2019

If the rugs are even shot straigh on. If they do not have the same aspect ratio the will distort differently into the same area.

JJMack
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 14, 2019 May 14, 2019
LATEST

If all rugs are rectangle with the same aspect ratio you can easily create a mockup template  so you can place your rugs in a  scene like rub on a floor in a room. Even a oval rug with the same aspect ratio would place nicely in the template. Basically all the Rugs canvas size needs to have the same aspect ratio. A floor could also be carpeted.

JJMack
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines