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

Scripting to place, rotate, and reposition 3D objects

New Here ,
Jul 11, 2023 Jul 11, 2023

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!

TOPICS
Actions and scripting , Windows

Views

147

Translate

Translate

Report

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 ,
Jul 12, 2023 Jul 12, 2023

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

 

Votes

Translate

Translate

Report

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 ,
Jul 13, 2023 Jul 13, 2023

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. 

Votes

Translate

Translate

Report

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 ,
Jul 13, 2023 Jul 13, 2023

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

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