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...
| Attachment | Size |
|---|---|
| bevel2_1.py.txt | 29.89 KB |
| bevel1_53.py.txt | 30.14 KB |
Comments
Not working
Im using Gimp 2.6.11 and Python 2.6.5. Ive made sure to remove the ".txt" from the file name. Ive uninstalled and reinstalled Gimp and Python several times. No matter what I do I cant get Gimp to recognize Bevel 2.1. In frustration I tried Bevel 1.53 and it worked on the first install.
I get this same
error or problem trying to load bytes and pixels wordtart python file.
Bevel 2.1 is here
Major update! With new features, lots of bugs and glitches fixed.
- 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. 5 corresponds to the old gloss function. 6-10 gives even more gloss, may cause weird results... the gloss is now also applied before the blur, to give a smoother result when it is used.
- 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. Without this option, only the selection is used, as usually.
- 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.
How do I....
How do I download and install this plugin? I am new to Gimp and have no clue how to work with its plugins. Thanks.
if you dont install still
if you dont install still look this comment. good luck >>> Python for Windows is hit and miss for installing, because we don't know what all you have done versus what you need jokes to do. It's not a simple matter of just simply installing Python and then everything miraculously works, you also have to re-install GIMP so that the program can find the Python modules when installing, etc. If you have done all that is mentioned in the comment I linked to, and you have Python console showing in the GIMP menu under Filters, etc., then it's a matter of where the file is placed and whether fal or not it needs to have permissions (admin rights) activated for it. http://registry.gimp.org/node/25007#comment-11384
You need to install python
If you're using windows, you need to install python and then reinstall gimp so that the python package is included. There's a tutorial on installing python-gimp for windows here:
http://www.gimpusers.com/tutorials/install-python-for-gimp-2-6-windows
Still no bevel selection
I downloaded and installed Python and GTK as directed and I still do not have the bevel. Is there anything else I need to do?
By the way, yes I am using Windows XP.
Read this comment
http://registry.gimp.org/node/25007#comment-11384
Python for Windows is hit and miss for installing, because we don't know what all you have done versus what you need to do. It's not a simple matter of just simply installing Python and then everything miraculously works, you also have to re-install GIMP so that the program can find the Python modules when installing, etc.
If you have done all that is mentioned in the comment I linked to, and you have Python console showing in the GIMP menu under Filters, etc., then it's a matter of where the file is placed and whether or not it needs to have permissions (admin rights) activated for it.
I hope this helps.
I have this plugin now
I followed the instructions very closely how to install both Python and PGK. Yes, Python-Fu is in the Filters menu but all that shows is console.
Thanks for all the help. It was very much appreciated.
wait there is also a bug in
wait there is also a bug in the registry software so a damn .txt extension is automatically added to all new script hosted here...so as example script.py become script.py.txt
I think is this your problem, to solve just remove the .txt extension
Is it working now?
Is it working for you now?
When Python console shows in the GIMP Filters menu, that's an indicator that Python is installed. There is one overlooked issue, though. GIMP 2.6.11 requires Python (2.6.5 or 2.6.6). The newer Python 2.7 and greater will break Python plug-ins in GIMP 2.6.11.
It works fine for me
The following reply caught my attention:
"If you have this file (cross_process.py.txt) in C:\Users\username\.gimp-2.6\plug-ins. Try renaming the file to cross_process.py by removing the .txt at the end, then restart GIMP."
After I tried this with your file it worked just fine.
All anyone has to do when saving your file is to remove the .txt at the end and it should work.
Glad it got resolved
I'm going to add a note to the main text about that .txt extension, you're not the first one to be troubled by it...
A small update
- 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.
The "gloss" function is a simple off/on checkbox.
Here's a little example on it (upper = without, lower = with gloss):
Version 1.5 is here - now with preview!
This update has a completely new interface, using gimpui and gtk instead of gimpfu. There's also a preview function!
Oh, and you get to choose any layer mode now.
Special thanks to the makers of layerfx.py and high-end-sharpen.py, your plugins have taught me a lot.
Rev 1.41
Great script! Thanks for creating it.
Again an update...
Ok, again sorry for the rapid update pace, but I have now fixed everything I wanted to fix with this plugin.
- 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.
Updated
Ok, a new update is up, which improves the rendering of the bevel a lot. Also, a new shape setting!
Works for me on Ubuntu
It works for me on ubuntu.. thnx..
Engineering Ebooks
Only produces a grey
Only produces a grey layer.
The chisel script works ok.
Gerard.
?
Are you using the latest version, and what settings are you using when you run the script? Do you have a selection made when you run the script?
Try this: make a selection with a selection tool, then run the script with default settings, except set the layer mode to normal. You should be getting a bevel in the shape of the selection.
Also, are you using GIMP 2.6? The script may not work on other GIMP versions (I myself only have 2.6 so I can't test it on other versions).
It was already selected by
It was already selected by the text tool but I did as you asked.
And I set the layer mode to normal.
The result is a gray "halo" around the text but the text itself no change.
Sorry but I don't know what else to do.
Gerard.
Try this
If the bevel is all gray, try setting the "depth" setting higher. Somewhere around 25 usually works for me.
Try also setting the "light elevation" setting lower.
Also, if you want the bevel to be in the shape of the text, you need to make a selection in the shape of the text. Use "alpha to selection" on the text layer first, then apply the bevel.
Then you can try different layer modes for the bevel. Hard light usually works best, although grain merge can also be nice.
Yes now it works. Thanks
Yes now it works.
Thanks dd.
Gerard.
No problem
You're welcome...
also, for what it's worth, I'm trying to set the default settings on the next version to optimal levels so that you can use this script "right out of the package".
Updated again...
Ok, sorry for making these rapid-fire updates, but all of the initial problems should be pretty much fixed now.
If anyone encounters any further problems / glitches, please let me know. Thanks.
For those without python
here is a similar script I wrote a while back:
http://registry.gimp.org/node/24217
-Rob A>
Nice
Nice script, I'll have to try it out sometime.
Works with Ubuntu
I am using Ubuntu 10.04 64 and the plug-in works, but you must make a selection first.
Script
Installed the script and tried a run through, but the script doesn't finish with anything. It is doing something, but it's not being revealed.
worked for me
I tried it (minus the .txt extension) and it worked for me.
...
What version of GIMP are you using, and what operating system? Do other python scripts work ok for you?
Try renaming the script file so it has a ".py" extension instead of ".py.txt", I think that causes some problems sometimes.
I am using gimp version
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.
odd
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 this
Try leaving a selection on the object you are beveling.