Trouble trying to set a Layer Name...

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

DaveWortley

Trouble trying to set a Layer Name...

Post by DaveWortley »

I'm using ProEXR to open EXR files and I want to have an on 'Document Opened' script which does some renaming of layers much like we already have for TIF and TGA files.

I've got it to work with the standard CS6 EXR importer plugin but with the ProEXR plugin something strange happens and I can't set the layer name.

Once saved as PSD still have the same issue, would have thought this would be fairly simplistic script, but there's something funny going on... See attached file.

Code: Select allactiveDocument.layers[0].name = "test"

Error 8800: General Photoshop error occurred. This functionality may not be available in this version of Photoshop.
-The command "Set" is not currently available.
Line: 1
-> activeDocument.layers[0].name = "test"

Problem occurs on CS4 and CS6

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

Mike Hale

Trouble trying to set a Layer Name...

Post by Mike Hale »

I don't work with 32bit images much but I know there are lots of limits as to what you can do with them. I wouldn't have thought changing the name with a script would be one of the things you can't do but even Action Manger code chokes on renaming the layer. If you convert to 16 or 8 bit both the Photoshop Object Model and Action Manger code work as expected.
DaveWortley

Trouble trying to set a Layer Name...

Post by DaveWortley »

Ah I think it's because I've got ProEXR on CS4, CS6 opens the 32bit PSD and can run the script, just need to update my ProEXR then hopefully.