GIMP Chat http://gimpchat.com/ |
|
Create New Gradient Along Path (python fu script). http://gimpchat.com/viewtopic.php?f=9&t=14068 |
Page 1 of 1 |
Author: | trandoductin [ Thu May 12, 2016 5:29 pm ] |
Post subject: | Create New Gradient Along Path (python fu script). |
Will allow you to quickly create a gradient by sampling color values of an active layer along the active path. To run the script just have the layer you want to grab colors out of selected and have a path active (some simple path drawn). The script will divide the path (approximately) into number of segments and sample color values to use for new gradient. After the script runs, you should have a new gradient created with the name you have specified as input for the script. Will be available under <Image>/Tools/Create New Gradient Along Path... Attachment: 2nd version allows STRAIGHT LINE equal distance sampling This was an idea suggested by PegLeg44. At least that's way i understood him (hopefully I am right). This is what the options look like for the script. I said approximately because as you can tell below it's not exact equal distance along the path but it's pretty close. for a 5 segment gradient for a 25 segment gradient |
Author: | Pat625 [ Thu May 12, 2016 5:45 pm ] |
Post subject: | Re: Create New Gradient Along Path (python fu script). |
Have yet not tried it but a great idea. Does it differ from the one in G'MIC? |
Author: | trandoductin [ Thu May 12, 2016 5:53 pm ] |
Post subject: | Re: Create New Gradient Along Path (python fu script). |
Pat625 wrote: Have yet not tried it but a great idea. Does it differ from the one in G'MIC? I didn't know there was one in GMIC so i don't know |
Author: | Dalia [ Thu May 12, 2016 6:12 pm ] |
Post subject: | Re: Create New Gradient Along Path (python fu script). |
Thank you trandoductin! Just downloaded. |
Author: | trandoductin [ Thu May 12, 2016 7:04 pm ] |
Post subject: | Re: Create New Gradient Along Path (python fu script). |
Dalia wrote: Thank you trandoductin! Just downloaded. Thank you for giving it a try |
Author: | Wallace [ Thu May 12, 2016 7:10 pm ] |
Post subject: | Re: Create New Gradient Along Path (python fu script). |
I already have a script installed made by Rob A, that does this same thing. |
Author: | trandoductin [ Thu May 12, 2016 8:52 pm ] |
Post subject: | Re: Create New Gradient Along Path (python fu script). |
I didn't know that Wallace.. |
Author: | trandoductin [ Thu May 12, 2016 9:05 pm ] |
Post subject: | Re: Create New Gradient Along Path (python fu script). |
Okay so I think PegLeg44 wants something that calculates from a straight path. Currently this script treats it as a Cubic Bezier Curve so the sampling points are like this for a 10 segment gradient. So from a straight path, we should just simple calculate equal distance like this So now i've added an option you can choose "YES" to calculate like the 2nd image above (with equal distance) and not like Bezier Curve like 1st image. This is the second version of this script. Attachment:
|
Page 1 of 1 | All times are UTC - 5 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |