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

Interactive scripting

Engaged ,
Jun 29, 2019 Jun 29, 2019

Copy link to clipboard

Copied

Hi,

I created a script which after doing several manipulations on an image (stage1) needs to crop it to a 1X1 square ratio (stage2).

After cropping i do several more manipulations (stage3).

I want to user to decide how to place the 1X1 crop.

How can I make the script stop  after stage1 and continue after the user completed stage2?

Thanks

TOPICS
Actions and scripting

Views

548

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

correct answers 1 Correct answer

People's Champ , Jun 29, 2019 Jun 29, 2019

I did not understand well. But I will suggest something.
How do you make a crop?
If through the DOM function, then maybe you wanted to get this.

app.displayDialogs = DialogModes.ALL;

app.activeDocument.crop([0,0,10,10]);

app.displayDialogs = DialogModes.NO; // DialogModes.ERROR;

Votes

Translate

Translate
Adobe
People's Champ ,
Jun 29, 2019 Jun 29, 2019

Copy link to clipboard

Copied

I did not understand well. But I will suggest something.
How do you make a crop?
If through the DOM function, then maybe you wanted to get this.

app.displayDialogs = DialogModes.ALL;

app.activeDocument.crop([0,0,10,10]);

app.displayDialogs = DialogModes.NO; // DialogModes.ERROR;

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
Engaged ,
Jun 30, 2019 Jun 30, 2019

Copy link to clipboard

Copied

yes , thatch it!

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
Engaged ,
Jul 04, 2019 Jul 04, 2019

Copy link to clipboard

Copied

LATEST

The cropping work great.

Now I am into writing another script.

This time I generate N number of shapes and ask the user to arrange them.

Once arranged i need to complete the script action.

How can I do that?

That it alert the user to arrange the layer and 'hit ok when done...'

And after hitting ok i shall continue the script.

Thanks

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