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

Panel freezes

Explorer ,
Mar 15, 2017 Mar 15, 2017

Copy link to clipboard

Copied

I have a problem, if I run over a panel a long running script (5- 10 sec), the panel is not usable for this time.

Is there a way to run the script in a background thread, or something similar??

Function in *.jsx file

//Save all Data to Json-File

saveAllNewPresets = function (data) {


   for (var i = 0; i < data.length; i++) {

   //Funktionsnamen zusammensetzten
   var funcname = data[i].function + "( " + jamJSON.stringify(data[i].look) + ")";
   //Funktion ausführen
   eval(funcname);
   }

   return true;
};

TOPICS
Actions and scripting

Views

345

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

Adobe Employee , Mar 16, 2017 Mar 16, 2017

The actions system runs on the main thread. So you and your users should not be interacting with Photoshop during script execution.

Votes

Translate

Translate
Adobe
Adobe Employee ,
Mar 16, 2017 Mar 16, 2017

Copy link to clipboard

Copied

The actions system runs on the main thread. So you and your users should not be interacting with Photoshop during script execution.

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
Explorer ,
Mar 20, 2017 Mar 20, 2017

Copy link to clipboard

Copied

LATEST

Ok, 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