Skip to main content
stephenw42374084
Inspiring
February 2, 2017
Answered

Photoshop script replacing Smart Layer in WAVEFRONT Obj file

  • February 2, 2017
  • 1 reply
  • 375 views

The Photoshop JavaScript PDF states that WAVEFRONTRLA (obj 3D file) is a valid Document type.

(although it does not appear on intellisence on Photoshop CC 2017).

However modified script that replaces a smart object in a PSD file with a different .PSB file.

Does not work appear to work in an OBJ file, even though it appears to use .PSB smart layers.

The JavaScript file does not error but no changes are made.

The smart layer is in a texture folder.

I'm very new to the world of 3D files but wonder if anybody has experience they could share of finding the Smart layer

and Replacing it with a new .PSB file in a .OBJ file using a JavaScript script?

Thanks for looking

Stephen

This topic has been closed for replies.
Correct answer stephenw42374084

Seem to have found the problem!

Although Photoshop shows .obj in layers within Photoshop.

It is referring to data layers in the materials associated file .mtl,

so no actual layers are in obj file which is being scanned for smart layers, hence script could not find them.

So will have to change the .mtl file contents and/or replace the material image files which are referred to in the .mtl file,

to update the .obj file result.

Stephen

1 reply

stephenw42374084
stephenw42374084AuthorCorrect answer
Inspiring
February 3, 2017

Seem to have found the problem!

Although Photoshop shows .obj in layers within Photoshop.

It is referring to data layers in the materials associated file .mtl,

so no actual layers are in obj file which is being scanned for smart layers, hence script could not find them.

So will have to change the .mtl file contents and/or replace the material image files which are referred to in the .mtl file,

to update the .obj file result.

Stephen