Advertisement

You're blocking ads, which pay for BlenderNation. Read about other ways to support us.

Automatic Coloring for Grease Pencil

10

revereche writes:

I wanted a way to quickly color loose lineart without needing to close any lines, so I juryrigged a setup with G'MIC's existing automatic colorize method (which you may have used in GIMP or Krita). Hopefully, it'll help someone else out!

How to Use:

Save your lineart as a transparent .png sequence to its own folder, in 0000.png etc. format. Here's a gif of my lineart as an example.

Go into Object mode and use a bunch of small cubes to mark regions of color (not Grease Pencil--OpenGL has weird issues with antialiasing that mess colorize up), being sure to work in the Blender Render engine and setting the material to "Shadeless." Move the cubes accordingly with the lineart in each frame. Don't forget to add a color for the background, or it won't work! Here, I chose blue.

Then, export this as a sequence to its own folder--again, transparent.

Now, go into the script and change the appropriate variables to reflect the folders you're using. Make sure both lineart and color have the same dimensions and duration. Run the script, and voila! Instant coloring!

When I lay the lineart over, however, I can see it isn't perfect.

So, I bring the sequence back into Blender as a background image (toward the bottom of the properties panel).

Now, I turn on fill in grease pencil and edit the areas accordingly.

Composite it all together while replacing the background color with transparency, and that's it! Feel free to integrate it with other things, and let me know if you have any suggestions :)

10 Comments

  1. if you want to create a videotutorial,you will help further the newbies like me. Anyway,thanks for the idea,I was searching for something similar from a long time.

    • I haven't tried anything but I looked at the script and it just calls "gmic.exe" which means you should download "G'MIC for Windows (64bit or 32bit) - Command-line interface (CLI)", then unzip it to a folder and add that to Windows' PATH so the script can find it. There's no installation per se. I hope this helps.

  2. We are working in something similar for grease pencil branch already. We are still in design stage, but is something we are going to implement in some way.

    The idea is create real filling strokes, not only an image.

  3. Hello @revereche. Since I have a project in my mind that I want to working with,your addon is crucial for me..so I need to understand well how it works. You have already explained it,but I prefer if you explain it in a video tutorial,since I'm again almost a newbie and I want to go faster. I can give you the money that you need to do it. Let me know if you are interested. very thanks.

Leave A Reply

To add a profile picture to your message, register your email address with Gravatar.com. To protect your email address, create an account on BlenderNation and log in when posting a message.

Advertisement

×