Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python fu : Gradient API
#2
You use pdb.gimp_gradient_get_custom_samples() with a list of one element:
Code:
pdb.gimp_gradient_get_custom_samples(gradient,1,[.5],False)

But it is usually better to get all your gradient samples at the same time using a single call with a list of positions...
Reply


Messages In This Thread
Python fu : Gradient API - by awan - 08-24-2018, 03:35 AM
RE: Python fu : Gradient API - by Ofnuts - 08-24-2018, 06:33 AM
RE: Python fu : Gradient API - by awan - 08-24-2018, 03:43 PM

Forum Jump: