GIMP Chat
http://gimpchat.com/

Update to Custom Font Bevel Reflect BRL to Version 1.10 Tabbed
http://gimpchat.com/viewtopic.php?f=9&t=20088
Page 1 of 2

Author:  Skinnyhouse [ Tue Aug 23, 2022 6:50 am ]
Post subject:  Update to Custom Font Bevel Reflect BRL to Version 1.10 Tabbed

Following up MareroQ's recent post concerning errors when using BRL contours, here is an update.

The issue was caused by my update to a deprecated pdb in which I failed to use the correct value type. Unfortunately the correctly updated pcb does not apply the curves in the same way as used byGnuTux so I have reverted to the deprecated pcb call. It works for me on Windows still - and if I can replicate GnuTux's curves with the new call in the future I will replace it.

Download, extract and install the plug-in to your user plug-ins folder:

Attachment:
Custom_Font_Bevel_Reflect_BRL_1_6_V_110_Tabbed.zip [18.42 KiB]
Downloaded 46 times


The filter can be located with the following menu path:

Filters>>Custom Font Tools>>Custom Font Bevel Reflect BRL 1.6 V 1.10 Tabbed

The dialog tabs:

Attachment:
Dialog_Highlight.jpg
Dialog_Highlight.jpg [ 397.34 KiB | Viewed 1540 times ]


The new option for using the outline contours is highlighted with a red outline.
New wording is highlighted in solid red.

Author:  Skinnyhouse [ Tue Aug 23, 2022 7:04 am ]
Post subject:  Re: Update to Custom Font Bevel Reflect BRL to Version 1.10 Tabbed

The outline contours work better when the contour depth is set to a value of 4 or more.

The example below shows the original custom font and then with the outline (using an orange and black gradient) set to 1 - which is barely visible. Click on the images to see a slightly more detailed view.

Attachment:
00_OriginalAndThinOutline.jpg
00_OriginalAndThinOutline.jpg [ 81.86 KiB | Viewed 1532 times ]


This set of examples show the three outline types (Outline, Ouline(Inner Bevel), Outline(Outer Bevel)) with a controur depth set to 4:

Attachment:
08_AllOutlineCharactersDepth4.jpg
08_AllOutlineCharactersDepth4.jpg [ 179.9 KiB | Viewed 1532 times ]


The last set of examples show the effect using the outlines only option:

Attachment:
09_AllOutlinesDepth4.jpg
09_AllOutlinesDepth4.jpg [ 124.55 KiB | Viewed 1532 times ]

Author:  MareroQ [ Tue Aug 23, 2022 8:14 am ]
Post subject:  Re: Update to Custom Font Bevel Reflect BRL to Version 1.10 Tabbed

Hi Skinnyhouse.
Thanks a lot for the update. :bigthup
Outstanding work should be widely available, so it's also here.

Attachments:
Thanks to Skinnyhouse.png
Thanks to Skinnyhouse.png [ 128.62 KiB | Viewed 1525 times ]

Author:  Skinnyhouse [ Tue Aug 23, 2022 3:07 pm ]
Post subject:  Re: Update to Custom Font Bevel Reflect BRL to Version 1.10 Tabbed

Careful there MareroQ - I might have to blush :oops: at such praise.

And after a little poking around it looks as if the values required by gimp-drawable-curves-spline should be normalized (i.e. between 0.0 and 1.00). It would have been useful if this information was noted in the procedure browser.

:hoh So Version 1.11 to come then. (Couldn't find a smilie for pain in the butt.)

Author:  MareroQ [ Wed Aug 24, 2022 3:28 am ]
Post subject:  Re: Update to Custom Font Bevel Reflect BRL to Version 1.10 Tabbed

I no longer care about outdated procedures (avoid - but if it does, nothing happens). They work in Gimp-2.10 and plugins for Gimp-3.0 will have to be rewritten anyway.
However, I get annoyed by messages from Gimp (run with options: --verbose) such as:
... ”as a menu label, this is deprecated and will be a bug in GIMP 3.0 Plug in "...
Obvious obviousness.

Is the attached version with 'Preview' acceptable for You?

Attachments:
Untitled-BRL1.png
Untitled-BRL1.png [ 154.41 KiB | Viewed 1465 times ]
Untitled-BRL2.png
Untitled-BRL2.png [ 57.54 KiB | Viewed 1465 times ]

Author:  Skinnyhouse [ Wed Aug 24, 2022 4:33 pm ]
Post subject:  Re: Update to Custom Font Bevel Reflect BRL to Version 1.10 Tabbed

Looks pretty good to me at first play M. :bigthup :bigthup

Don't forget to give credit to yourself and relevant others in the help part of the dialog - especially GnuTux.

I ran the filter on a custom font with preview active and it successfully applied the effect to all characters - but it did throw up this error message right at the very end:

Attachment:
MrQ_ErrorMess.jpg
MrQ_ErrorMess.jpg [ 73.99 KiB | Viewed 1426 times ]

Author:  Pocholo [ Wed Aug 24, 2022 5:12 pm ]
Post subject:  Re: Update to Custom Font Bevel Reflect BRL to Version 1.10 Tabbed

I don't know if MareroQ answered you through PM, but this plugin is working fine with no errors on my end.
Image

Author:  MareroQ [ Thu Aug 25, 2022 1:05 am ]
Post subject:  Re: Update to Custom Font Bevel Reflect BRL to Version 1.10 Tabbed

@Pocholo.
Thanks a lot for trying it out.

@Skinnyhause.
This is the first time I see such an error message.
The 'gimp-drawable-sub-thumbnail' routine is not present in this plugin - but something indirectly forces the thumbnail preview to be updated.
If You clear the thumbnails in the 'Document History' tab [Ctrl + Recreate preview] can You repeat this message?
I haven't found anything on the internet about it. :hoh
The bug is probably harmless - but until this problem is resolved, this is my last plugin with a preview. :(

Author:  Skinnyhouse [ Thu Aug 25, 2022 3:41 am ]
Post subject:  Re: Update to Custom Font Bevel Reflect BRL to Version 1.10 Tabbed

A little light...

The error happens when using the layer custom font naming convention (i.e. .png suffix) - no matter how many layers are present.
This suggests that the error happens when my original code attempts to locate the original first layer in order to mark it as the active layer in the treated file.
This is the very last step in my code - after all the layers have had BRL effects applied - so it is a fairly harmless bug.

I will look later when I have more time (chores calling) - I also have a function to add which will use the original curves data with the new pdb call.

Hope this helps. :hi5

Author:  MareroQ [ Thu Aug 25, 2022 4:34 am ]
Post subject:  Re: Update to Custom Font Bevel Reflect BRL to Version 1.10 Tabbed

But that didn't happen when there was no preview???
This suggests a different problem for me.
I am waiting patiently for Your investigation.

Author:  Skinnyhouse [ Thu Aug 25, 2022 8:50 am ]
Post subject:  Re: Update to Custom Font Bevel Reflect BRL to Version 1.10 Tabbed

:? No luck with my theory M...

No error message when custom font layers are not used.
No error message when custom font layers are used and the preview is off.
BUT still...
Error message when custom font layers are used and preview is on.

Oh and another thing that may or nay not be connected...

In my custom font version the layer visiblity is turned off for all but the first character but with the preview version all layers are visible on completion.

There is a conflict somewhere - to state the blindingly obvious!

Author:  MareroQ [ Thu Aug 25, 2022 10:33 am ]
Post subject:  Re: Update to Custom Font Bevel Reflect BRL to Version 1.10 Tabbed

Thanks to Your explanations, now I can repeat this mistake.
BRL with preview should only work on one active layer.
However, when there are more layers named with a single letter, the code handles them all, and that creates a problem.
For custom fonts, your preview solution (as a new image) is the only option.
For BRL with Preview, you need to limit the operation to the active layer (i.e. all text in one pass - which saves time and probably the same result as those processed separately).
If you have time, can You change it?
I don't want to mess with Your code anymore, so I can possibly add a constraint (but inelegant: e.g. by applying only to visible layers or renaming them).

Author:  MareroQ [ Fri Aug 26, 2022 12:57 am ]
Post subject:  Re: Update to Custom Font Bevel Reflect BRL to Version 1.10 Tabbed

Here is the code with the fix (for you to consider - ignore it if you have your own fix in the code):
- rename all layers in the image,
- execute the BRL code (only on the active layer),
- restore old layer names,
- add the option to save a newly created emap (as a layer).
-- complete the 'Help' tab.

Attachments:
Bevel_Reflect_Logo_1_6_V_110_P BF.zip [19.55 KiB]
Downloaded 24 times
BugFixBRL.png
BugFixBRL.png [ 62.02 KiB | Viewed 681 times ]

Author:  Skinnyhouse [ Fri Aug 26, 2022 1:55 am ]
Post subject:  Re: Update to Custom Font Bevel Reflect BRL to Version 1.10 Tabbed

OK, thanks - will look...

Had a go last night at modifying your previous upload- it worked but broke the preview :cry - so went to bed in disgust. :otb

Thought that I might as well go back to my first upload on this thread and do a version just for the active layer.

back soon...

Author:  Skinnyhouse [ Fri Aug 26, 2022 2:18 am ]
Post subject:  Re: Update to Custom Font Bevel Reflect BRL to Version 1.10 Tabbed

Ok have had a look and your new version, renaming the layers, certainly works without throwing up errors. :bigthup
So if you want to proceed with that it will do the business.

I have a busy chore day again so will not be able to do anything until tonight.
Some of my custom font files consist of 180+ character layers which will work with renaming but would create a sort of delay in applying the filter.
This would not be the case for the typical user however.

I will probably still look at another version for active layer use and present that if and when I can.

Author:  MareroQ [ Fri Aug 26, 2022 3:27 am ]
Post subject:  Re: Update to Custom Font Bevel Reflect BRL to Version 1.10 Tabbed

To be clear to everyone: :wvy
BRL with preview should not replace "Custom_Font_Bevel_Reflect_BRL_1_6_V_110_Tabbed.py".
It's just an alternative like Custom_Font_Metallic_Effects and Metallic_Effects_009-P.py (which is also one of the most downloaded on gimpsripts.net).
However, I would like you to be the maintainer of both versions of Bevel_Reflect_BRL. :bowdown

Author:  Rod [ Fri Aug 26, 2022 3:55 am ]
Post subject:  Re: Update to Custom Font Bevel Reflect BRL to Version 1.10 Tabbed

MareroQ wrote:
Here is the code with the fix (for you to consider - ignore it if you have your own fix in the code):
- rename all layers in the image,
- execute the BRL code (only on the active layer),
- restore old layer names,
- add the option to save a newly created emap (as a layer).
-- complete the 'Help' tab.

Works really well with flat gradient images. Thx! :bigthup

Attachment:
Gradient-Reflect-Image_RD-2022-08-26_044153.jpg
Gradient-Reflect-Image_RD-2022-08-26_044153.jpg [ 308.64 KiB | Viewed 658 times ]


Original gradient image.
Attachment:
Gradient 70_RD1.png
Gradient 70_RD1.png [ 5.32 MiB | Viewed 658 times ]

Author:  Skinnyhouse [ Fri Aug 26, 2022 6:20 am ]
Post subject:  Re: Update to Custom Font Bevel Reflect BRL to Version 1.10 Tabbed

Hmmm Have been told that it is family time this evening so I will be out of action then too...


MareroQ wrote:
Quote:
However, I would like you to be the maintainer of both versions of Bevel_Reflect_BRL. :bowdown


Does that mean I get a salary increase? :hehe :hehe

Author:  MareroQ [ Fri Aug 26, 2022 8:41 am ]
Post subject:  Re: Update to Custom Font Bevel Reflect BRL to Version 1.10 Tabbed

@Rod.
Thanks for the test. Your result looks very professional.

@Sinnyhouse.
Of course.
Your salary = 5000 BRL*
Consultation Pocholo = - 1000 BRL
Consultation Rod = - 1000 BRL
Fixed costs = - 3000 BRL
Tax = - 500 BRL
Inflation = - 500 BRL
The sum to be refunded = BRL 1000
Send to account: https://www.gimpscripts.net/

*The similarity between the names of the bank and the currency is coincidental.

Attachments:
1000 BRL.png
1000 BRL.png [ 246.71 KiB | Viewed 642 times ]

Author:  Skinnyhouse [ Fri Aug 26, 2022 11:58 am ]
Post subject:  Re: Update to Custom Font Bevel Reflect BRL to Version 1.10 Tabbed

OK M...
Already spent...
Finished chores early so here is another version (no preview) with tabs that works on the active layer only - no matter what the name of the layer is.

It currently lives in Filters>>Alpha to Logo

If you like it then you can add a preview and that should be job done. As a bonus this one also updates the deprecated curves spline pdb call.

Attachment:
Active_Layer_Bevel_Reflect_BRL_1_6_V_111_Tabbed.zip [18.28 KiB]
Downloaded 27 times


Attachment:
Active_Layer_BRL_Test.jpg
Active_Layer_BRL_Test.jpg [ 278.91 KiB | Viewed 622 times ]


Did I mention that I also have an update for Metallic Filters?

Page 1 of 2 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/