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

app.refresh();

Advocate ,
Sep 05, 2017 Sep 05, 2017

I noticed that when I apply app.refresh ();

the functions slow down a lot

would there be a solution to this problem?

TOPICS
Actions and scripting
2.1K
Translate
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 ,
Sep 05, 2017 Sep 05, 2017

The only thing I can think of is to have Photoshop refresh only what the user needs to see and use.  For example toggle all palettes off so Photoshop only needs to refresh the image being worked on.  Pallets do not need to be refreshes for they are not being displayed. And only use app.refresh(); when the user need to see the current image and do something. Like an interactive transform or select an image file etc.

JJMack
Translate
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 ,
Sep 06, 2017 Sep 06, 2017

Why you need app.refresh() ?

Translate
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 ,
Sep 06, 2017 Sep 06, 2017

I'm afraid that if you really need app.refresh(), you have to bear with the extra slowness that said refreshing implies.

Davide Barranca - PS developer and author
www.ps-scripting.com
Translate
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 ,
Sep 06, 2017 Sep 06, 2017

I need app.refresh() for opening smart object content and "while" loop comparing active document with last opened or custom $.sleep() didn't worked for me. It was stucked in endless loop.

I noticed that there is Kevlar API with Idle event. How it works?

Photoshop Kevlar API Additions for Generator · adobe-photoshop/generator-core Wiki · GitHub

Translate
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 ,
Sep 06, 2017 Sep 06, 2017

I have seen on the ps-scripts site a question similar to mine

and it was suggested to use windows.redraw ();

I tried this solution but it does not work.

Translate
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 ,
Sep 07, 2017 Sep 07, 2017

redraw, as far as I remember, was an ActionManager equivalent of refresh, that can be used in older PS versions – same concept, though.

Davide Barranca - PS developer and author
www.ps-scripting.com
Translate
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 ,
Sep 07, 2017 Sep 07, 2017

That's true, but isn't there one more GUI method for dialog redraw?

Translate
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 ,
Sep 07, 2017 Sep 07, 2017
LATEST

Thank you

so I have to continue to use app.refresh ();

Translate
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