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

Suppress window

Advocate ,
Jul 20, 2017 Jul 20, 2017

Copy link to clipboard

Copied

There is a way to suppress these windows

Via script?

Schermata 2017-07-20 alle 11.35.04.png

TOPICS
Actions and scripting

Views

1.2K

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

Guide , Jul 21, 2017 Jul 21, 2017

Try this...

// Maxim

Maxin(150);

function Maxin(radius){

var desc1 = new ActionDescriptor();

desc1.putUnitDouble(charIDToTypeID('Rds '), charIDToTypeID('#Pxl'), radius);

desc1.putEnumerated(stringIDToTypeID('preserveShape'), stringIDToTypeID('preserveShape'), stringIDToTypeID('squareness'));

executeAction(stringIDToTypeID('maximum'), desc1, DialogModes.NO);

};

Votes

Translate

Translate
Adobe
Enthusiast ,
Jul 20, 2017 Jul 20, 2017

Copy link to clipboard

Copied

Is this filter executed from script?

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
Advocate ,
Jul 20, 2017 Jul 20, 2017

Copy link to clipboard

Copied

I created an action and converted it to .jsx

This below and an example of a more complex script

cTID = function(s) { return app.charIDToTypeID(s); };

sTID = function(s) { return app.stringIDToTypeID(s); };

function Azione8() {

  function step1(enabled, withDialog) {

    if (enabled != undefined && !enabled)

      return;

    var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);

    executeAction(sTID('copyToLayer'), undefined, dialogMode);

  };

  // Maxim

  function step2(enabled, withDialog) {

    if (enabled != undefined && !enabled)

      return;

    var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);

    var desc1 = new ActionDescriptor();

    desc1.putUnitDouble(cTID('Rds '), cTID('#Pxl'), 150);

    desc1.putEnumerated(sTID("preserveShape"), sTID("preserveShape"), sTID("squareness"));

    executeAction(sTID('maximum'), desc1, dialogMode);

  };

  step1();     

  step2();   

};

Azione8.main = function () {

  Azione8();

};

Azione8.main();

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
Enthusiast ,
Jul 20, 2017 Jul 20, 2017

Copy link to clipboard

Copied

Can you try change

step1();    

step2();  

into:

step1(true,true);    

step2(true,true);  

?

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
Advocate ,
Jul 21, 2017 Jul 21, 2017

Copy link to clipboard

Copied

Unfortunately it does not go.

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
Guide ,
Jul 21, 2017 Jul 21, 2017

Copy link to clipboard

Copied

Try this...

// Maxim

Maxin(150);

function Maxin(radius){

var desc1 = new ActionDescriptor();

desc1.putUnitDouble(charIDToTypeID('Rds '), charIDToTypeID('#Pxl'), radius);

desc1.putEnumerated(stringIDToTypeID('preserveShape'), stringIDToTypeID('preserveShape'), stringIDToTypeID('squareness'));

executeAction(stringIDToTypeID('maximum'), desc1, DialogModes.NO);

};

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
Advocate ,
Jul 21, 2017 Jul 21, 2017

Copy link to clipboard

Copied

LATEST

SuperMerlin is a genius

I love you

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