It is currently Thu Jul 04, 2024 5:23 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Normal Map scripting function
PostPosted: Sat Mar 14, 2020 1:35 am  (#1) 
Offline
New Member

Joined: Mar 14, 2020
Posts: 3
hello guys,
i am working on a script to automate creating normal maps from a texture with the integrated Filters > Generic > Normal Map but i cant find the python function for it when searching the Python procedure browser.
but i found another function that is in the same menu so are some just missing or did not got "wrapped" into python? any info/help will be appreciated

i am using gimp 2.10.18 on Manjaro Linux


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Normal Map scripting function
PostPosted: Sat Mar 14, 2020 2:02 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
All Gimp functions with a big G in front have no corresponding pdb entry (yet).

_________________
"Where am I ?"


Top
 Post subject: Re: Normal Map scripting function
PostPosted: Sat Mar 14, 2020 2:48 am  (#3) 
Offline
New Member

Joined: Mar 14, 2020
Posts: 3
ok thank you very much, is there another way to get it working in python or maybe in script-fu (havnt looked into that yet) to use it in a automated script?


Top
 Post subject: Re: Normal Map scripting function
PostPosted: Sat Mar 14, 2020 3:57 pm  (#4) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
Officially no. The "pdb" is the procedural-database, which the scripting languages use to access various GIMP functions.

However, there may be a possiblity. In the issue raised about scripting GEGL actions: https://gitlab.gnome.org/GNOME/gimp/issues/1686 Massimo showed a way that it was possible to call the GEGL shared library from Python.

I've had some success implementing some of the functions, but I've not tried Normal Map yet.

Kevin


Top
 Post subject: Re: Normal Map scripting function
PostPosted: Wed Mar 18, 2020 10:35 am  (#5) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
On the off chance that you come back, here is a python plugin that adds gegl-normal-map to the PDB

Kevin


Attachments:
fu-python-gegl_normal_map.zip [2.35 KiB]
Downloaded 224 times
Top
 Post subject: Re: Normal Map scripting function
PostPosted: Sat Mar 28, 2020 8:33 am  (#6) 
Offline
New Member

Joined: Mar 14, 2020
Posts: 3
hey, thank you for your effort tho i found another way to achive what i wanted.

i used the gimp-normalmap plugin (can be found on google code archive - "cant post links here") to do the converstion tho there was a problem that the plugin did not let me do that so i had to change one line in the code and compile it myself. That was pretty easy on linux but a little harder for windows but i got it working.

Not sure if i am allowed to share that modification but if so i can provide the compilled dll.
The only thing i did there was to change line 202 to:
nmapvals.alphamap_id = 0;


this was causing the plugin to crash when i was using it from NONINTERACTIVE gimp console so i changed it, not sure if that is the right solution but it did work for me sofar, so good enough ;)


Top
 Post subject: Re: Normal Map scripting function
PostPosted: Wed Oct 12, 2022 12:03 am  (#7) 
Offline
New Member

Joined: Oct 11, 2022
Posts: 1
Hi,I am facing the same issue and I have around 70k human face images. This is the first time I am using GIMP, can anybody tell me the easiest way to do the normal map generation? I have used the python code but unfortunately it gets crashed everytime I try using BIMP to automate task.
I am using Windows 10 and GIMP 2.10.
Thank you!


Top
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts BACK TO NORMAL

8

No new posts Warp Transform tool PDB function? (Solved)

2

No new posts Attachment(s) Scripting GEGL functions

52

No new posts Attachment(s) Scripting my head into a wall - Any help would be appreciated

1

No new posts PARTIALLY SOLVED How does it work on layer blendng mode "Normal"

1



* Login  



Powered by phpBB3 © phpBB Group