Switch to full style
Post all Gimp scripts and script writing questions here
Post a reply

Luce plugin, help please! (Solved, thank you dinnaset)

Wed Mar 10, 2021 4:35 pm

Hi guys! Have a question to ask those with high base knowledge. Can anybody post an example of the Luce plugin code? Does anybody here has done a script or plugin using Luce plugin? I will appreciate if any help. Thank you in advance.
This is what I got and it's not working :gaah
Code:
pdb.plug_in_luce(img, rayslayer, 1,   
                                 0,   #point_light - true
                                 0,   #quadratic_attenuation - false
                                 1,   #zero_mode - true
                                 1,   #add_source - true
                                 1,   #source_zero- true
                                 1,   #source_positive_normalize - true
                                 1,   #source_negative_normalize- true
                                 1,   #positive_normalize - true
                                 1,   #negative_normalize - true
                                 1,   #num_threads_to_use
                            100.00,   #positive_intensity - in feet
                            100.00,   #negative_intensity - in feet
                             3.333,   #center_x - in feet
                            -4.000,   #center_y - in feet
                                 0,   #direction_x
                                 0,   #direction_y
                                0.0,   #zeros0
                                0.0,   #zeros1
                                0.0,   #zeros2
                                0.0,   #zeros3
                                0.0)   #zeros4

Re: Luce plugin

Wed Mar 10, 2021 7:31 pm

Pocholo, I have the Luce plugin and it works for me in gimp 2.10.22. Does the version, you have not work? I have attached the version of the plugin that I have.

Re: Luce plugin

Wed Mar 10, 2021 7:37 pm

Sorry If I didn't express myself clearly, Mackenzie. I was talking about how to integrate the Luce procedure in a plugin I'm writing.

Re: Luce plugin

Wed Mar 10, 2021 7:47 pm

Pocholo wrote:Sorry If I didn't express myself clearly, Mackenzie. I was talking about how to introduce the Luce procedure in a plugin I'm writing.
.

Oh. I'm not sure how to do that. Coding goes over my head.

Re: Luce plugin, help please!

Thu Mar 11, 2021 12:20 am

Try using these parameters, then play:
pdb.plug_in_luce(inImage, inLayer,
0, #point_light - true
0, #quadratic_attenuation - false
1, #zero_mode - true
1, #add_source - true
1, #source_zero- true
1, #source_positive_normalize - true
1, #source_negative_normalize- true
1, #positive_normalize - true
1, #negative_normalize - true
1, #num_threads_to_use
1.00, #positive_intensity - in feet
1.00, #negative_intensity - in feet
0, #center_x - in feet
0, #center_y - in feet
0.1, #direction_x
0.1, #direction_y
0.0, #zeros0
0.0, #zeros1
0.0, #zeros2
0.0, #zeros3
0.0) #zeros4
note: omit first parameter (the "run-mode"), should not be in

Re: Luce plugin, help please!

Thu Mar 11, 2021 2:21 am

dinasset wrote:Try using these parameters, then play:
pdb.plug_in_luce(inImage, inLayer,
0, #point_light - true
0, #quadratic_attenuation - false
1, #zero_mode - true
1, #add_source - true
1, #source_zero- true
1, #source_positive_normalize - true
1, #source_negative_normalize- true
1, #positive_normalize - true
1, #negative_normalize - true
1, #num_threads_to_use
1.00, #positive_intensity - in feet
1.00, #negative_intensity - in feet
0, #center_x - in feet
0, #center_y - in feet
0.1, #direction_x
0.1, #direction_y
0.0, #zeros0
0.0, #zeros1
0.0, #zeros2
0.0, #zeros3
0.0) #zeros4
note: omit first parameter (the "run-mode"), should not be in



Thanks a lot Dinnaset! :jumpclap I did play with parameters and I got what I want. I keep learning with you as experienced coder.
Post a reply