# Preview doesn't update when using script - v1.3 beta

**URL:** https://community.aseprite.org/t/preview-doesnt-update-when-using-script-v1-3-beta/10795
**Category:** Bug Reports
**Created:** [September 4, 2021, 9:27am UTC](https://community.aseprite.org/t/preview-doesnt-update-when-using-script-v1-3-beta/10795 "2021-09-04T09:27:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Olga\_Galvanova](https://community.aseprite.org/user_avatar/community.aseprite.org/olga_galvanova/32/3294_2.png) [@Olga\_Galvanova](https://community.aseprite.org/u/Olga_Galvanova)
#### Post date: [September 4, 2021, 9:27am UTC](https://community.aseprite.org/t/preview-doesnt-update-when-using-script-v1-3-beta/10795/1 "2021-09-04T09:27:26Z")

</div>

i’m using convert to greyscale script (this one: [Understanding Colour Value with HSL/HSV - #3 by Olga\_Galvanova](https://community.aseprite.org/t/understanding-colour-value-with-hsl-hsv/9650/3) ). when i use it, the preview window doesn’t update unless i hide and reveal one of the layers (so i can even start drawing on that layer without any change). it doesn’t matter if i use shortcut or call the script from menu.

edit: if i select a brush and wiggle over the layer created by script without drawing on it, i can reveal it bit by bit as well.

---

<div class="post-metadata">

### Author: ![dacap](https://community.aseprite.org/user_avatar/community.aseprite.org/dacap/32/10_2.png) [@dacap](https://community.aseprite.org/u/dacap)
#### Post date: [September 30, 2021, 11:53am UTC](https://community.aseprite.org/t/preview-doesnt-update-when-using-script-v1-3-beta/10795/2 "2021-09-30T11:53:20Z")

</div>

Hi @Olga_Galvanova, actually some scripts need to call `app.refresh()` to refresh the screen/preview (I see that this is script does that), but it shouldn’t be necessary, i.e. if `app.refresh()` is necessary it means that something has to be fixed in Aseprite to take care of these cases where something is modified in the sprite and then (when the transaction/modification/script is over) the screen must be refreshed automatically.

I’ll create an issue related to `app.refresh()`-related issues linking this post just in case.
