keKit for Krita

Long time no update…

Well, 0.15 is now available on GitHub!

Notes:

  • Fixed keGrid shortcut flags - will now work on any type of layer-selection…(or just an active doc)
  • keBatch excluded terms now include “fg” and “bg”, making it : Visible root layers & groups that are named ‘Fx’, ‘Background’, “fg” or “bg” are excluded. (see github for more info)
  • added keBatch option (T)exture Mode - changes behaviour to a PBR game/vfx-ish texture export workflow:
    • Exports will be placed in the same dir as the doc (not in a sub-dir as the default mode)

    • Layers/groups named “b”,“d”,“r”,“m”,“ao”,“e”,“bump”, “disp”, “displacement”, “roughness”, “rough”, “metal”, “metallic”, “emissive”, or “mask”, will be exported as 8-bit grayscale

    • All others (such as “c” or “n”) will be exported as RGB 8-bit.

    • The layers/groups will use the document name as basename and add the the layer/group names as suffixes. E.g: “concrete01.kra” exports becomes “concrete01_c”, “concrete01_r” etc.

    • Note: The export will autosave (saved doc must be latest, far less annoying than to forget…)

P.s. The reason I put “emissive” in the grayscale category is that I prefer to control the color in-engine, and not in texture. Easily changed in the ke_batch.py file like most things here though…

Fwiw, I run oxipng and resizing in a (nemo) bash-script after export.

2 Likes

Been spending a bit of time in Krita lately so…here’s 0.16 :smiley:

New features:

Tile

kekit_krita_tile

Scales, duplicates and places 4 tiles (copies) of the selected layer to fit the image bounds

  • Make sure the layer is trimmed to image size!

Seamless Tiling (ST)

  • Simple ‘cross-offset’ seamless tiling - creates a group of masked layers.
  • This is a very simple method, do not expect every case to work well
  • The mask is a regular PNG included in keKit, adjust to your liking if needed

Tip: Tweak with Kritas Wrap-around mode.

Other updates/fixes:

  • toRGBA is now called chPack

  • keGrid - now removes any grid offset automatically

  • keBatch Texture Mode is now a discrete button (“BET”)

  • keBatch - fixed some hardcoded linux paths

  • Optimized UI (less cramped, some checkboxes are now without text - just mouse over)

4 Likes

v0.17 is now out :slight_smile:

…and another one checked off the to-do list:

chPack (formerly known as toRGBA):

  • Fixed automatic Alpha to Transparency Mask assignment. No manual conversion needed. (Just RMB Split-Alpha export)

P.S. Ok, so the remaining task on the list is “Layer-Bounds snapping”, non-modal probably… but I don’t have the time right now… it might be a while! I really hope someone beats me to that one! :wink:

2 Likes

Back (so soon) for v0.19 ! GitHub Link

I’ve been doing a bit of texturing so - some updates in that area:

dupe (NEW)

  • Duplicate selection (or entire layer, if no selection) directly into new layer.
    → contextual combo-variant of the built-in features (ctrl-j, ctrl-alt-j)
    …but mostly to circumvent my sluggish (4k+) clipboard performance in Krita (probably not because of Krita) :wink:

  • Shortcut available (not assigned by default)

  • Tip: Also works on groups (as if the group was merged)

chPack (Update)

  • now uses clone layers (when not making new doc) to enable (non-destructive) “orm” export for BET

  • “o” naming for grayscale nodes added (occlusion, “ao” alt.)

  • chPack detects “ao”/“o”,“r” & “m” naming in selected nodes and names chPack group “orm”

  • note: A 4th node selected will add the alpha layer, but, note that the Alpha layer cannot be a clone: Re-run chPack or manually update.

  • note: Re-running chPack will replace an already existing “orm” group if found

  • chPack now auto-merges groups when making a new doc, for convenience

1 Like

And v0.20! misc bits and bobs… (link in previous post)

  • (New) Invert Green Channel - One-click macro for faster normal map work

  • (New) Desaturate - Faster workflow with one click/shortcut. Tip: Undo on single layer will reveal desaturated copy! (+also works on groups, auto-merging a copy!)

  • (Update) Dupe - Placement now above source layer + slight speed improvement

  • (Update) keGrid - snapping auto-toggle removed (To me, grid snapping is not useful at all without layer-bounds/center snapping - grid snapping will be on/off when keGrid is toggled on/off, as old default.)

1 Like