Skip to main content
Legend
September 4, 2021

P: Chars in the layer name are not checked when creating a smart object

  • September 4, 2021
  • 2 replies
  • 344 views

When a smart object is created, it gets the file reference property from the name of the top layer, which is then used to create a temporary file (when edited). If such a name contains characters that are not supported by the file system, then an error will occur when trying to edit a smart object, for example:

 

 

 

activeDocument.activeLayer.name = activeDocument.activeLayer.name  +"\n" 
executeAction( stringIDToTypeID('newPlacedLayer'), undefined, DialogModes.NO );
executeAction( stringIDToTypeID('placedLayerEditContents'), undefined, DialogModes.NO ); //error

 

 

 

Please help, error when placedLayerEditContents.

This topic has been closed for replies.

2 replies

Legend
November 25, 2021

Thanks. I've logged an issue for the engineering team.

jazz-yAuthor
Legend
September 5, 2021

UPD: The problem is present on Windows (ntfs)