07-28-2018, 06:52 AM
Where it makes sense Gimp auto-fills the first arguments. For instance, for a regular script called form an image display, if the first two args are a PF_IMAGE and a PF_DRAWABLE, they are set to the current image/layer and the dialog doesn't show input fields for them. Likewise, scripts that takes PF_IMAGE and PF_VECTORS as first args get that pre-filled if called from the Paths list. So I'm not surprised that if you call something from the Palettes list, a leading PF_PALETTE arg is pre-filled with the current palette.