Skip to main content
Participant
April 25, 2025
Answered

Automate Vanishing Point tool by Script

  • April 25, 2025
  • 2 replies
  • 587 views

I'm trying to create a mockup in Photoshop where I apply a rug pattern onto a cushion. I have photos of the object (the cushion) from 7 different angles, and I want to automate the process using a script inside Photoshop. I can do this manually using the Vanishing Point tool, but it's very time-consuming. When I try to automate it with an action, it doesn't record the Vanishing Point steps. And when I try to use a script, it can't access the Vanishing Point tool either.

Is it possible for a script to open a Smart Object, insert the pattern into it, and transform it into the required perspective automatically? I have around 700 patterns to apply, so doing it manually isn't really an option. Can someone help?

  

Correct answer c.pfaffenbichler

I think you should

• create a template file for each of the seven perspectives 

• that contains three Smart Objects

• which in turn contain the same Linked Smart Object 

 

Then you can insert new designs in the Linked Smart Object-file, update the three SOs and get the new design in the montage. 

Which could be automated with a Script, maybe even with an Action. 

 

I hope these screenshots can help clarify: 

2 replies

Participant
November 11, 2025

i could not set on stairs . how to set vanishing point  as per plan? how to set angle ?

Participant
November 11, 2025

 i can not edit plan use vanishing point ? how to set point as per plan ?

c.pfaffenbichler
Community Expert
Community Expert
April 26, 2025

Could you post screenshots to show how complex your Vanishing Point application is (with regard to the sides for example)? 

Might one (or more) »simple« Free Transform/s suffice? 

fatosdpAuthor
Participant
April 26, 2025

 First, I select the cushion shown in the image and create a new layer to mask it.
Then, I import the pattern I want to use for the mockup by going to File > Place Embedded and remove it from the smart object.
I select the pattern and copy it using Ctrl + X.
After copying, I delete the layer that contained the pattern and create a new blank layer.
Next, I open the Filter > Vanishing Point tool and create a perspective grid.
Finally, I paste the pattern using Ctrl + V and place it correctly within the perspective grid.I cannot integrate this process into an action or script to automate it.I don't know what other method I could use.
I'm not sure how to automate this process more efficiently.

c.pfaffenbichler
Community Expert
c.pfaffenbichlerCommunity ExpertCorrect answer
Community Expert
April 26, 2025

I think you should

• create a template file for each of the seven perspectives 

• that contains three Smart Objects

• which in turn contain the same Linked Smart Object 

 

Then you can insert new designs in the Linked Smart Object-file, update the three SOs and get the new design in the montage. 

Which could be automated with a Script, maybe even with an Action. 

 

I hope these screenshots can help clarify: