It is currently Tue Jul 02, 2024 2:00 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Luce plugin, help please! (Solved, thank you dinnaset)
PostPosted: Wed Mar 10, 2021 4:35 pm  (#1) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
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
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

_________________
https://www.deviantart.com/pocholo17
Image


Last edited by Pocholo on Thu Mar 11, 2021 9:28 am, edited 2 times in total.

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: Luce plugin
PostPosted: Wed Mar 10, 2021 7:31 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
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.


Attachments:
luce.zip [73.32 KiB]
Downloaded 120 times
Top
 Post subject: Re: Luce plugin
PostPosted: Wed Mar 10, 2021 7:37 pm  (#3) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
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.

_________________
https://www.deviantart.com/pocholo17
Image


Last edited by Pocholo on Wed Mar 10, 2021 7:56 pm, edited 1 time in total.

Top
 Post subject: Re: Luce plugin
PostPosted: Wed Mar 10, 2021 7:47 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
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.


Top
 Post subject: Re: Luce plugin, help please!
PostPosted: Thu Mar 11, 2021 12:20 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
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

_________________
"Where am I ?"


Top
 Post subject: Re: Luce plugin, help please!
PostPosted: Thu Mar 11, 2021 2:21 am  (#6) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
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.

_________________
https://www.deviantart.com/pocholo17
Image


Top
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Luce

12

No new posts Attachment(s) Baby's first GEGL plugin - a very basic GEGL plugin anyone can make.

9

No new posts Can't get plugin to appear (mostly)

3

No new posts Attachment(s) Help! What's the plugin called?

7

No new posts Attachment(s) Plugin superxBR

7


cron

* Login  



Powered by phpBB3 © phpBB Group