Skip to main content
Participant
Apr 25, 2025 4:35 PM UTC
Answered

Automate Vanishing Point tool by Script

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?

  

c.pfaffenbichler
c.pfaffenbichlerCorrect answer
Community Expert
Apr 26, 2025 11:14 AM UTC

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: 

7 replies

Participant
Nov 11, 2025 5:05 AM UTC

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

Translate
Participant
Nov 11, 2025 5:01 AM UTC

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

Translate
c.pfaffenbichler
Community Expert
Community Expert
Apr 26, 2025 10:01 AM UTC

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? 

Translate
fatosdpAuthor
Participant
Apr 26, 2025 10:36 AM UTC

 

 

 

 

 

 

 

 

 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.

Translate
c.pfaffenbichler
Community Expert
c.pfaffenbichlerCommunity ExpertCorrect answer
Community Expert
Apr 26, 2025 11:14 AM UTC

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: 

Translate