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

How can I make a script that uses the Auto Align Layers

New Here ,
Aug 17, 2023 Aug 17, 2023

Copy link to clipboard

Copied

I keep trying but it just comes up with Error 8800: General Photoshop error occured. This functionality may not be available in this version of Photoshop. - The command "<unknown>" is not currently available.

This is always happening with this code on the executeAction line.

 

// Run Auto-Align Layers on all layers in the new document using Perspective projection
         var idautoAlignLayers = stringIDToTypeID("autoAlignLayers");
         var desc2 = new ActionDescriptor();
         var idprojection = stringIDToTypeID("projection");
         desc2.putInteger(idprojection, 3); // Perspective projection
         executeAction(idautoAlignLayers, desc2, DialogModes.NO);

 

 I think it must be a bug because there's no other reason. I have it all set up properly, with two layers selected.

 

TOPICS
Actions and scripting , Windows

Views

118

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 ,
Aug 17, 2023 Aug 17, 2023

Copy link to clipboard

Copied

I will tag a few scripters that can help you. Next time add scripting tag to your question.

@c.pfaffenbichler @Stephen_A_Marsh @jazz-y @r-bin 

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 ,
Aug 18, 2023 Aug 18, 2023

Copy link to clipboard

Copied

What code do you get when you record the operation with ScriptingListener.plugin? 

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 ,
Aug 18, 2023 Aug 18, 2023

Copy link to clipboard

Copied

LATEST

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