# Grids with units

**URL:** <https://krita-artists.org/t/grids-with-units/99244>\
**Category:** Artists Feedback & Testing\
**Created:** [August 14, 2024, 8:40am UTC](https://krita-artists.org/t/grids-with-units/99244 "2024-08-14T08:40:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grum999](https://krita-artists.org/user_avatar/krita-artists.org/grum999/32/66488_2.png) [@Grum999](https://krita-artists.org/u/Grum999)\
**Post date:** [August 14, 2024, 8:40am UTC](https://krita-artists.org/t/grids-with-units/99244/1 "2024-08-14T08:40:52Z")

</div>

Hi

Following this topic

> [@Is there a way to create a grid in measurements other than pixels?](https://krita-artists.org/t/is-there-a-way-to-create-a-grid-in-measurements-other-than-pixels/96558):
>
> I did do a search before posting this but can’t find any posts that help. Is there a way to create a grid in anything other than pixels? I know you can change the ruler to other measurements and so create your own guide lines based off it. But the ‘create grid’ docker seems to be stuck in pixels and I can’t find a way to change it. Is there a way to create a grid in cm or mm for example? I’m not techy at all so if there’s a simple solution in a settings option somewhere I can’t find it. Thanks…

I’ve made an implementation of unit management for Grids.

 ![image](https://krita-artists.org/uploads/default/original/3X/a/c/ac9f3b318d6634f41bf3625b24c5e71f9c9d40c2.png)

The MR is here:

> **[Grids with unit management (!2201) · Merge requests · Graphics / Krita · GitLab](https://invent.kde.org/graphics/krita/-/merge_requests/2201)**
>
> Hi Following this topic on KA: https://krita-artists.org/t/is-there-a-way-to-create-a-grid-in-measurements-other-than-pixels/96558/2 I've implemented possibility to provide measures in unit other than...

You can download and test it from here:

- [Windows](https://invent.kde.org/grum/krita/-/jobs/2049225/artifacts/download)
- [Linux AppImage](https://invent.kde.org/grum/krita/-/jobs/2049224/artifacts/download)

Any feedback from whom is interested by feature is welcome.

Also, it partially solve [bug #376942](https://bugs.kde.org/show_bug.cgi?id=376942) as only grids are covered here.

Implementation for grids was harder than I initially thought (especially because of Python API that I wanted to be able to manage the unit for grids, but not only…)

Grum999

---

<div class="post-metadata">

**Author:** ![yetanotherpainter](https://krita-artists.org/user_avatar/krita-artists.org/yetanotherpainter/32/31561_2.png) [@yetanotherpainter](https://krita-artists.org/u/yetanotherpainter)\
**Post date:** [August 25, 2024, 5:54am UTC](https://krita-artists.org/t/grids-with-units/99244/2 "2024-08-25T05:54:13Z")

</div>

Just a heads up. I hope thea pixels will be default unit in there 🙂

---

<div class="post-metadata">

**Author:** ![Grum999](https://krita-artists.org/user_avatar/krita-artists.org/grum999/32/66488_2.png) [@Grum999](https://krita-artists.org/u/Grum999)\
**Post date:** [August 25, 2024, 6:39am UTC](https://krita-artists.org/t/grids-with-units/99244/3 "2024-08-25T06:39:12Z")

</div>

Hi

By default it’s pixel:

- unit is kept in kra document, so if you have a document with pixels and one with millimeters, when they’re opened the unit defined for active document is applied
- the last used unit is kept in Krita global settings (like all the other grids parameters) as a new document will use the last grids parameters, if the last used grids was in unit X, then unit X will be applied

So globally if you’re used to work in pixels, then pixels will be the default  
If you’re used to work with unit X, then unit X will be the default

Grum999
