You are here

Selection bevel

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Rate this item!
AttachmentSize
bevel2_1.py.txt29.89 KB
bevel1_53.py.txt30.14 KB

Version 2.1 is here!

This script creates a bevel in the shape of the selection. The script appears as Filters > Distorts > Bevel. The bevel is created on it's own layer. You can adjust various things, like width, azimuth (light angle), etc.
Comments and feedback are welcome.

NOTE!!
When you download the script, you have to rename it so that the extension is ".py" and not ".py.txt", otherwise it will not work in GIMP.

Screenshots:

Update history:

V 2.1:
- Completely rewritten rendering. The bevel is created differently now, giving more consistent results, resulting in less artifacts for wide bevels.
- Removed options "feather" and "pre-blur" as redundant, with the new rendering these aren't necessary.
- The gloss option is now adjustable, with a 0-10 scale.
- Added option "intersect with alpha": when enabled, the alpha channel of the active layer is intersected with the selection to get the bevel shape. You can see an example in the 2nd screenshot, where a rectangular selection was used.
- After using preview, the final bevel no longer appears at the top of the layer stack. The bevel layer now always appears above the active layer. If no layer is active, the bevel appears at the top of the stack.

V 1.53:
- Slight update that improves the rendering of the bevel. Specifically, the feather step is now done before the shrink selection step, this way the adjustments are more accurate for places where the selection is very narrow.

Version 1.52:

- A "gloss" function has been added. It makes the bevel "glossy".
- repeat effect (ctrl-f) now functions properly. Also, non-interactive mode (starting the script from console) works now.

Version 1.5:

- Now with a completely new, compact interface!
- Now with a preview function!

Special Thanks to the makers of layerfx.py and high_end_sharpen.py, I've learned a lot from your plugins.

Bevel 1.41 is here! Enjoy!

- You can now select inner or outer bevel, as you can see from the image above.
- The shape options have been replaced with a slider that lets you adjust the shape more accurately. A negative value is more dimpled, a positive value is more puffed up/round, while zero is the same as the old "angular" setting.
- Downwards bevels now appear as they are supposed to, as you can see from the image above.
- The bevel layer is now created above the current active layer as is supposed to.
- The layer name is now set to "Inner bevel" or "Outer bevel" according to the inner/outer setting.

Major update! version 1.3:
- Rendering of the bevel has been improved significantly. Most notably, the pre-blur and post-blur settings do not cause a gap in the bevel's outer edge on the higher settings anymore. This enables you to create smoother bevels.
- New shape option added: "Angular steep" which is the same as angular but steeper. Hard to explain, try for yourself.
- The default settings have been adjusted again. This should make using the script easier.

Update - version 1.2:
- I've added the options to select the layer mode from Normal, Hard/Soft light and Grain merge. Those are the modes I most often use with bevels, so it makes sense to me. I don't know how to add a drop-down menu yet, when I figure that out I can add all of the layer modes.

- fixed the bug that resulted in empty layers if the width was wider than the selection. It now simply creates a bevel that fills the whole selection.

- modified the way downwards bevels are created slightly. It's still not quite there yet, it still leaves a sort of border around the bevel. But you can just use an opposite angle and select up if you need downwards bevels.

- modified the default values.

Update - version 1.1: I added options to apply a blur to the bevel both before and after the emboss function. The options are named "Pre-blur" and "Post-blur", respectively. I also improved the interface, there's now radio buttons for Up/down directions. The "down" direction doesn't function quite as I want yet, I'll be working on it...

Code License: 
GIMP Version: 
Scripting Engine: 

Comments

I am using gimp version 2.6.11 on linux mint. I saved it as a .py extension and made it executable. It shows up in gimp and goes through the motions, but the added layer contains nothing.

Do you have a selection when you apply the plugin? If you have no selection at all (ie. the whole image is unselected) then the resulting layer appears empty. Try selecting an area, or the whole layer, and then applying the plugin.

Edit - - there seems to be a bug that results in empty layers if you set the bevel width wider than what fits in the selection. I'll try to have it fixed asap.

Try leaving a selection on the object you are beveling.

Pages

Subscribe to Comments for "Selection bevel"