Copy link to clipboard
Copied
Hi, I'm just getting into Photoshop scripting, so apologies if this is somewhat of a basic question.
I have a 3D .obj file (3D model) that I want to import and overlay on a .png file, rotate about the x, y, and z axes by a specific angle, and resize+reposition it such that it fits within a bounding box given by the pixel coordinates (left, top, bottom, right).
I can do all this manually, but I can't seem to find a way to automate this using a script. Would appreciate it very much if someone could give me some code examples to point me in the right direction, thanks!
Copy link to clipboard
Copied
Hi @mofusheep 3D object support ended with Photoshop version 22.x
https://helpx.adobe.com/photoshop/kb/3d-faq.html
Copy link to clipboard
Copied
I suspect some of the Scripting regulars might still have older Photoshop versions installed for testing etc. but they would probably need to know which Photoshop version the original poster is using.
@mofusheep , I personally didn’t Script for Photoshop’s 3D functionality, so I am not sure if ScriptingListener.plugin recorded meaningful code for that, but generally one way to go about Scripting features outside Photoshop’s DOM is recording with ScriptingListener.plugin and then wrapping the code in usable functions.
Copy link to clipboard
Copied
I can't advise with the scripting, but I would advise you not to put too much effort into Photoshop 3D. It is deprecated and in the process of being removed from Photoshop altogether.
Dave