Skip to content

simple way to edit blender textures in krita, alternative to using blender image editor

License

Notifications You must be signed in to change notification settings

heisenshark/blender-krita-link-plugin

Repository files navigation

Blender Krita Link Plugin

This plugin offers a seamless way to edit Blender images in Krita without the need for file reloads.

Krita Artists post

Features

  • Links Blender textures with Krita files.
  • Imports Blender textures as new layers.
  • Selects UV faces in Blender (they must be selected in both edit mode and UV editor; this feature requires the C++ plugin).
  • Transfers UV maps from selected objects in Blender to Krita.
  • Offers Shortcuts for sending image, toggling uvs and getting uvs.

panel

demo.mp4

Installation

The plugin consists of two parts: one for Blender and one for Krita.

download the repo

Blender Part

  • Place the BlenderKritaLink folder in the blender/version/scripts/addons/ directory.

Krita Part

  • Place KritaBlenderLink and KritaBlenderDesktop.html in the <kritainstallation>/pykrita/ folder.

UVselectAddition Installation

  • download uv selection addition for your system [windows / linux] from releases page
  • unpack it in your krita program directory

manual compilation

  • Compile Krita from source using compile the krita or compile the krita using docker if you encounter issues.
  • Place uv-select from cppPart in the krita>plugins directory.
  • Compile again and create an AppImage as in tutorials if you are using Linux.
  • Extract libraries and action files to your Krita installation as described in this repository.

UVSelectionAddition is not required for the Python plugin to work but offers additional features.

Usage

Enabling the Plugin

  • In Krita: Activate the plugin via Settings > Configure Krita > Python Plugin Manager. Restart Krita and enable the dock under Settings > Docker > Blender Krita Link.
  • In Blender: Enable the plugin through Edit > Preferences > Add-ons > Blender Krita Link.

Plugin Operations

  • Use the Connect button to link to Blender, after that you can use Disconnect button to end your session. Also you can change Connection port both in Krita and Blender.
  • The plugin loads images from Blender into a list. Link an image by right-clicking it and selecting Link image, or import a texture by clicking From Blender to new layer. you open an image in new document(and link) too. Also you can use double click to make action based on context.
  • To enable linking, ensure the Krita document is the same size as the Blender image. Set the correct color spectrum under Image > Properties > Image Color Space (RGB/Alpha and Profile: sRGB options are recommended).
  • If "Send on draw" is activated, the image will update in Blender when you release the draw button on the canvas (and use ctrl+(Shift)+Z). You can also send data manually using the "Send Data" button.
  • Use Refresh to update image list from blender and query it by Search Blender images list textbox.
  • Use Refresh in uvs section to get the UV map from selected object(in blender) to krita.
    • you can also change color and the stroke weight of uv maps and their visibility
  • Use Select in uvs section for converting selected uvs in Blender to Krita selection
  • you can also enable the auto update of uvs and images list in blender using sync uvs and images checkbox, with the sync interval variable.

Disclaimers

This plugin is highly experimental and may contain bugs. If you wish to contribute or help improve it, feel free to contact me, make pull requests, or suggest improvements. This plugin probably does not work well on macos.