# Brush ink tool shorcut?

**URL:** https://community.aseprite.org/t/brush-ink-tool-shorcut/6532
**Category:** Help
**Created:** [August 2, 2020, 8:57pm UTC](https://community.aseprite.org/t/brush-ink-tool-shorcut/6532 "2020-08-02T20:57:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Snif](https://community.aseprite.org/user_avatar/community.aseprite.org/snif/32/3759_2.png) [@Snif](https://community.aseprite.org/u/Snif)
#### Post date: [August 2, 2020, 8:57pm UTC](https://community.aseprite.org/t/brush-ink-tool-shorcut/6532/1 "2020-08-02T20:57:02Z")

</div>

I’ve seen that you can choose shortcuts for a special ink tool brush option, but my question is if it’s possible to assign any way to just press a shortcut to act like a next/previous ink type?

---

<div class="post-metadata">

### Author: ![KashouC](https://community.aseprite.org/user_avatar/community.aseprite.org/kashouc/32/1404_2.png) [@KashouC](https://community.aseprite.org/u/KashouC)
#### Post date: [August 3, 2020, 1:08pm UTC](https://community.aseprite.org/t/brush-ink-tool-shorcut/6532/2 "2020-08-03T13:08:37Z")

</div>

No there is no way to do that unfortunately.

---

<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: [August 3, 2020, 4:37pm UTC](https://community.aseprite.org/t/brush-ink-tool-shorcut/6532/3 "2020-08-03T16:37:43Z")

</div>

I was trying to create a couple of scripts to do this but I’ve found a bug that makes this impossible to do even with scripts. I’ll release a fix on v1.2.22 and then comment here with a couple of scripts to do this ASAP.

---

<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: [August 4, 2020, 11:49pm UTC](https://community.aseprite.org/t/brush-ink-tool-shorcut/6532/4 "2020-08-04T23:49:48Z")

</div>

Now with Aseprite v1.2.22 we can create these two scripts to cycle ink types:

### PrevInk.lua

```lua
if app.apiVersion < 12 then return app.alert "You need Aseprite >= v1.2.22" end

local toolPref = app.preferences.tool(app.activeTool)
if toolPref.ink > 0 then
  app.command.SetInkType{ type=toolPref.ink-1 }
else
  app.command.SetInkType{ type=4 }
end

```

### NextInk.lua

```lua
if app.apiVersion < 12 then return app.alert "You need Aseprite >= v1.2.22" end

local toolPref = app.preferences.tool(app.activeTool)
if toolPref.ink < 4 then
  app.command.SetInkType{ type=toolPref.ink+1 }
else
  app.command.SetInkType{ type=0 }
end

```
