# Create a new view as windowed and topped

**URL:** <https://krita-artists.org/t/create-a-new-view-as-windowed-and-topped/59900>\
**Category:** Plugins and Scripts\
**Created:** [March 13, 2023, 3:12am UTC](https://krita-artists.org/t/create-a-new-view-as-windowed-and-topped/59900 "2023-03-13T03:12:38Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cliscylla](https://krita-artists.org/user_avatar/krita-artists.org/cliscylla/32/70465_2.png) [@Cliscylla](https://krita-artists.org/u/Cliscylla)\
**Post date:** [March 13, 2023, 3:12am UTC](https://krita-artists.org/t/create-a-new-view-as-windowed-and-topped/59900/1 "2023-03-13T03:12:38Z")

</div>

Greetings, everyone!

I’ve been using a new view as a real-time overview for a long time. Then I’m tired of having to manually window the new view and check the “stay on top” box every time, so I asked Python to do **create new view → windowing → check “stay on top” all at once.**

This is a simple script I wrote for myself (referencing the source code of the Subwindow Organizer), which I then made into a plugin because I wanted to share it with non-programmer Krita users.

 ![looks like this](https://krita-artists.org/uploads/default/original/3X/f/1/f1b49f75b0d597ed89d4283f07b3c271f475cf14.png)

At the reminder of @raghukamath , I updated the plugin and now it can bind shortcuts. (v1.1)  
It will be automatically disabled if no document is open, I don’t know how this happens but it makes perfect sense  
There’s no default shortcut, Ctrl+5 is assigned by me during testing.  
 ![weird](https://krita-artists.org/uploads/default/original/3X/0/4/04c7478fc28fc3aabb940aec0bd35d326e14bb57.png)

You can find the source code, readme and the script version of it on my github / bitbucket

[Cliscylla/krita\_windowed\_new\_view (github.com)](https://github.com/Cliscylla/krita_windowed_new_view)

[krita-plugin / windowed-new-view — Bitbucket](https://bitbucket.org/krita-plugin/windowed-new-view/src/main/)

and download the zip file from them

Hope you enjoy!

---

<div class="post-metadata">

**Author:** ![raghukamath](https://krita-artists.org/user_avatar/krita-artists.org/raghukamath/32/59144_2.png) [@raghukamath](https://krita-artists.org/u/raghukamath)\
**Post date:** [March 13, 2023, 7:24am UTC](https://krita-artists.org/t/create-a-new-view-as-windowed-and-topped/59900/2 "2023-03-13T07:24:03Z")

</div>

Awesome plugin. Does it make it available as a shortcut action in the keyboard setting, that would make it easier and doing this would be a shortcut key away.

---

<div class="post-metadata">

**Author:** ![Cliscylla](https://krita-artists.org/user_avatar/krita-artists.org/cliscylla/32/70465_2.png) [@Cliscylla](https://krita-artists.org/u/Cliscylla)\
**Post date:** [March 13, 2023, 11:35am UTC](https://krita-artists.org/t/create-a-new-view-as-windowed-and-topped/59900/3 "2023-03-13T11:35:02Z")

</div>

Thank you for your feedback, I’ll spare some time to implement this feature, which shouldn’t take long.  
Meanwhile, you can take a look at the code block in the “Other” section of the readme page (either of the two links). Save the entire code to a .py file, say _wnv.py_, and then by using krita’s built-in script “Ten scripts”, you can bind a shortcut to _wnv.py_. It does exactly the same thing as the plugin. I’ve just tested it and it works.

---

<div class="post-metadata">

**Author:** ![LaTor](https://krita-artists.org/letter_avatar_proxy/v4/letter/l/e274bd/32.png) [@LaTor](https://krita-artists.org/u/LaTor)\
**Post date:** [January 23, 2024, 5:09pm UTC](https://krita-artists.org/t/create-a-new-view-as-windowed-and-topped/59900/4 "2024-01-23T17:09:02Z")

</div>

Hi @Cliscylla

I just found this plugin, and I love it. The only possible bug that I found it that it does not work on images that were made before I installed this plugin. When I try to use it, the plugin is greyed out and does not open. If it is a new document, it does work as intended. Is there a way to fix this?

Thank you for your work!

---

<div class="post-metadata">

**Author:** ![Cliscylla](https://krita-artists.org/user_avatar/krita-artists.org/cliscylla/32/70465_2.png) [@Cliscylla](https://krita-artists.org/u/Cliscylla)\
**Post date:** [January 24, 2024, 3:14pm UTC](https://krita-artists.org/t/create-a-new-view-as-windowed-and-topped/59900/5 "2024-01-24T15:14:59Z")

</div>

Could you check if a layer group is being selected when you open an image? Based on my experience, the script options only greyed out when a layer group is currently selected (or when no image is open). If that’s the case, you can first selecting a normal paint layer from the Layers panel and then use the plugin. **EDIT 1day later: v1.2 fixed this issue. See the discussion below**

I think this script should also work for previously created images. If the problem is not solved, please let me know more information. 😀

---

<div class="post-metadata">

**Author:** ![lian00](https://krita-artists.org/user_avatar/krita-artists.org/lian00/32/231630_2.png) [@lian00](https://krita-artists.org/u/lian00)\
**Post date:** [January 24, 2024, 6:07pm UTC](https://krita-artists.org/t/create-a-new-view-as-windowed-and-topped/59900/6 "2024-01-24T18:07:18Z")

</div>

Thanks for sharing. Open a new view is quite boring in Krita.

---

<div class="post-metadata">

**Author:** ![freyalupen](https://krita-artists.org/user_avatar/krita-artists.org/freyalupen/32/47913_2.png) [@freyalupen](https://krita-artists.org/u/freyalupen)\
**Post date:** [January 24, 2024, 6:24pm UTC](https://krita-artists.org/t/create-a-new-view-as-windowed-and-topped/59900/7 "2024-01-24T18:24:57Z")

</div>

> [@Cliscylla](#):
>
> It will be automatically disabled if no document is open, I don’t know how this happens but it makes perfect sense

In your .action file, there is an ActivationFlag set:

```auto
<activationFlags>10000</activationFlags>

```

According to the list in [kis\_action.h](https://invent.kde.org/graphics/krita/-/blob/master/libs/ui/kis_action.h?ref_type=heads), this flag corresponds with a vector selection being active. Apparently that is why it doesn’t work when a group layer is selected? I’m not sure of the connection between those two things.  
You may want to change the flag to `0001`, which would allow activating the shortcut as long as an image is open.

---

<div class="post-metadata">

**Author:** ![Cliscylla](https://krita-artists.org/user_avatar/krita-artists.org/cliscylla/32/70465_2.png) [@Cliscylla](https://krita-artists.org/u/Cliscylla)\
**Post date:** [January 25, 2024, 6:43am UTC](https://krita-artists.org/t/create-a-new-view-as-windowed-and-topped/59900/8 "2024-01-25T06:43:05Z")

</div>

You are absolutely right! I was just copying the numbers from a plugin tutorial without giving it much thought. If I had googled for the keyword “krita activationFlag” at that time, I could have even found [another useful discussion thread](https://krita-artists.org/t/setting-up-shortcuts-conditions-and-activation-flags-for-a-plugin/15748/2). ([Setting up shortcuts conditions and activation flags for a plugin. - #2 by nickgeneratorfailed](https://krita-artists.org/t/setting-up-shortcuts-conditions-and-activation-flags-for-a-plugin/15748/2))

Thank you very much for pointing this out. I’ve updated the source code and the zip file.

Users of version 1.1 can now download the new v1.2 zip file, or manually change the value inside windowed\_new\_view.action to 0001.

> [@freyalupen](#):
>
> which would allow activating the shortcut as long as an image is open.

---

<div class="post-metadata">

**Author:** ![ahmet\_tabak](https://krita-artists.org/user_avatar/krita-artists.org/ahmet_tabak/32/103331_2.png) [@ahmet\_tabak](https://krita-artists.org/u/ahmet_tabak)\
**Post date:** [January 26, 2024, 8:42pm UTC](https://krita-artists.org/t/create-a-new-view-as-windowed-and-topped/59900/9 "2024-01-26T20:42:31Z")

</div>

very useful,thanks @Cliscylla  
Is there a way to separate this window from the main screen of Krita and move it to the second monitor? (without opening a new krita)

---

<div class="post-metadata">

**Author:** ![Michelist](https://krita-artists.org/user_avatar/krita-artists.org/michelist/32/65826_2.png) [@Michelist](https://krita-artists.org/u/Michelist)\
**Post date:** [January 26, 2024, 10:20pm UTC](https://krita-artists.org/t/create-a-new-view-as-windowed-and-topped/59900/10 "2024-01-26T22:20:23Z")

</div>

In case there is no other way to place this floating window and if your monitors are identical in pixel-height, then you can stretch Krita in width on both monitors, or, if arranged accordingly, also in height. Because it uses windows from Krita’s sub-window-mode, I would say you can place it freely in the area you can place sub-windows.  
The simplest and fastest way to find out such things is to check them out for yourself. 😉

Michelist

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.  
😉 Then you would find out that you need to widen your Krita over to the next display, because the window can only be placed in the area occupied by Krita’s main-window …

---

<div class="post-metadata">

**Author:** ![ahmet\_tabak](https://krita-artists.org/user_avatar/krita-artists.org/ahmet_tabak/32/103331_2.png) [@ahmet\_tabak](https://krita-artists.org/u/ahmet_tabak)\
**Post date:** [January 27, 2024, 12:42am UTC](https://krita-artists.org/t/create-a-new-view-as-windowed-and-topped/59900/11 "2024-01-27T00:42:13Z")

</div>

I know this. Then all dockers and toolbars icons stretch towards the 2nd screen. I share an example of this in clip studio. maybe it will give someone an idea.  
 ![new_window (2)](https://krita-artists.org/uploads/default/original/3X/6/3/63c53ccb778a1b908d823e13a0bd619d67cac77b.gif)

---

<div class="post-metadata">

**Author:** ![BrokenInteligence](https://krita-artists.org/user_avatar/krita-artists.org/brokeninteligence/32/90175_2.png) [@BrokenInteligence](https://krita-artists.org/u/BrokenInteligence)\
**Post date:** [February 2, 2024, 6:13am UTC](https://krita-artists.org/t/create-a-new-view-as-windowed-and-topped/59900/12 "2024-02-02T06:13:29Z")

</div>

God damn, such a good plugin, Thanks!!! If it’s not too much trouble, I would like you to add an option to add a layer of filters to the new window without modifying the original document. For example to be able to see the black and white values ​​of the drawing in real time, that would be incredible 😃

---

<div class="post-metadata">

**Author:** ![ahmet\_tabak](https://krita-artists.org/user_avatar/krita-artists.org/ahmet_tabak/32/103331_2.png) [@ahmet\_tabak](https://krita-artists.org/u/ahmet_tabak)\
**Post date:** [February 2, 2024, 3:19pm UTC](https://krita-artists.org/t/create-a-new-view-as-windowed-and-topped/59900/13 "2024-02-02T15:19:24Z")

</div>

[![](https://img.youtube.com/vi/FTvVBi1Vo7w/maxresdefault.jpg "Check Your Painting Values with One Krita Shortcut") ](https://www.youtube.com/watch?v=FTvVBi1Vo7w)

---

<div class="post-metadata">

**Author:** ![BrokenInteligence](https://krita-artists.org/user_avatar/krita-artists.org/brokeninteligence/32/90175_2.png) [@BrokenInteligence](https://krita-artists.org/u/BrokenInteligence)\
**Post date:** [February 2, 2024, 11:12pm UTC](https://krita-artists.org/t/create-a-new-view-as-windowed-and-topped/59900/14 "2024-02-02T23:12:42Z")

</div>

Yooooooooo, Thaaaaaankkkksss aaaaaaahhhhhhh T-T​:+1:👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍it works 100%

---

<div class="post-metadata">

**Author:** ![Cliscylla](https://krita-artists.org/user_avatar/krita-artists.org/cliscylla/32/70465_2.png) [@Cliscylla](https://krita-artists.org/u/Cliscylla)\
**Post date:** [February 4, 2024, 2:31pm UTC](https://krita-artists.org/t/create-a-new-view-as-windowed-and-topped/59900/15 "2024-02-04T14:31:11Z")

</div>

Wow, this is a very useful video, I never knew there’s such a simple yet smart solution, thank you very much! 👍

---

<div class="post-metadata">

**Author:** ![YRH](https://krita-artists.org/user_avatar/krita-artists.org/yrh/32/232547_2.png) [@YRH](https://krita-artists.org/u/YRH)\
**Post date:** [May 24, 2024, 10:42am UTC](https://krita-artists.org/t/create-a-new-view-as-windowed-and-topped/59900/16 "2024-05-24T10:42:45Z")

</div>

Hey, thank you very much for the plugin! Works great 🙂 ❤

I’m also a fan of Saito-sensei and needed this to set up my workspace according to his guidance. Having this on a key bind is super helpful.

I’m still a bit on the fence if it’s better to have a floating view subwindow or a completely separate window that I could move to a second monitor or place alongside other apps, such as BeeRef. For now I’ll continue with the view and see how it feels.
