Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Concatenate a layer name with fixed text and variables
#3
Thank you Offnuts!

More complex than I expected, but...
...I understand why that is so, cause this way offers much versatility
...well explained by you!

I got it going almost immediately!  Big Grin

Code:
...
[
    (PF_SLIDER, "contrast", "Contrast", 0, (0, 0.5, 0.01)),
    (PF_SLIDER, "blur", "Blur", 0, (0, 99, 1)),
]
...

pdb.gimp_item_set_name(new_layer, "Blur %2d, contrast %4.2f" % (blur,contrast))
Thanks again!
Reply


Messages In This Thread
RE: Concatenate a layer name with fixed text and variables - by tkemmere - 02-12-2023, 10:35 AM

Forum Jump: