01-27-2022, 12:37 PM (This post was last modified: 01-27-2022, 01:06 PM by rich2005.
Edit Reason: typo
)
What teapot suggests is removing the 'brush' variable. Was between fg_color and stroke at line 36
def python_glossy_stroke_3d(
img, layer, fg_color, stroke, rounding, ls_color, ls_z, glow,
Then because that generates errors, comment out lines 43, 61, 213
# cur_brush = pdb.gimp_context_get_brush()
# pdb.gimp_context_set_brush(brush)
# pdb.gimp_context_set_brush(cur_brush)
Finally comment out the menu registration line 231
# (PF_BRUSH, "brush", "Stroking brush:", None),
01-27-2022, 03:05 PM (This post was last modified: 01-27-2022, 03:43 PM by Krikor.)
Hi rich2005,
I think I understood just that.
Even in my previous post (#10) I made available the .py code of the plugin edited according to Teapot's instructions.
The only difference between your guidance and your previous post is that on line 36 I duplicated that line; One of which was left as a comment (for preservation purposes only) but the one below I just deleted the 'brush' variable.
I downloaded your attachment and I'm going to test it, but I believe it's the same one I already have after the edit suggested by Teapot.
Thank you rich2005.
Edited 02:
Using the version provided in the previous post (by rich2005), no changes were noticeable. The plugin continues with the same problem reported in the initial post.
Maybe some settings stuck from your previous version(s).
Try deleting pluginrc file from the samj Preference folder and restart Gimp so it re-scans the plugins.
01-27-2022, 10:23 PM (This post was last modified: 01-27-2022, 10:25 PM by teapot.)
Rich, Thanks for your confirmation it's working for you too.
Krikor, From the above posts it's clear we are all making the same edits (the commenting out does the same job).
From your image in post #10 it's clear that for some reason you are not running the modified code as the brush selector is still there.
I would try two things:
1. Move the plugin file out of the plugins folder to a folder away from anything to do with gimp. Restart gimp. Is the plugin still available from the menu? It should not be.
2. Make just one trivial change to some text in the plugin e.g. change just the one word Color in the line below to something else:
Change this line:
(PF_COLOR, "fg_color", "Color:", (0, 157, 255)),
to this line:
(PF_COLOR, "fg_color", "Testing:", (0, 157, 255)),
Put the plugin back into the plugins folder. Restart gimp. Has the text in the dialog box changed to say Testing instead of Colour?
This will help confirm if you are running the correct plugin code or not.
It may not matter much for this plugin as you have a workaround, but generally you need to know what code you are running.
So I wanted to create a little animation of a pendulum motion to learn about interpolation in blender animation and it went allright, I wound up with a nice 120 pictures. I imported them into Gimp as layers and wanted to export a gif file as animation, forever loop, with a 20 ms delay with one frame / layer as all of my frames had all the drawing on them. Now, the background is transparent, which worked fine in the past with another quite simple animation, but for whatever reason it seems to dislike the pictures I have now as when I try to export it nothing shows up only a very very very little part of the whole thing where the base and the pendulum meet. (I don't know whether this was the case when it had bacground colour as I haven't tried it that way) I have no clue why it just decides to chuck out 99.5% of the whole picture on every frame. I tried rendering it out multiple times in multiple ways in blender but something just doesnt feel right with gimp it seems.Anyone can hazard a guess why this might be happening?
Are you frame in "replace" or "combine" mode? It looks like they were meant for "combine" but are used as "replace". Maybe load the image in Gimp and bluntly reexport (use a new name) while forcing everything in combine mode (there is an option for this in the GIF export).