[Gimp-user] Script-Fu local procedure question



Hi,

I have an old script-fu script which contains

(if (not convolution-preset-type-is-basic)
(script-fu-register "script-fu-convolution-presets-blur-symmetric"
  "Symmetric Blur..."
  (string-append CONV-PRESET-DESCRIPTION "(Symmetric Blur)")
  "Iccii <iccii hotmail com>"
  CONV-PRESET-COPYRIGHT
  CONV-PRESET-DATE
  CONV-PRESET-IMAGE-TYPE
  SF-IMAGE      "Image"           0
  SF-DRAWABLE   "Drawable"        0
  SF-OPTION     "Matrix Type"     CONV-PRESET-TYPE-LIST
  SF-ADJUSTMENT "Amount"          '(3 1 128 1 1 0 0)
  SF-ADJUSTMENT "Center Value"    '(1 1 128 1 1 0 0)
  SF-TOGGLE     "Calculate Divisor" TRUE
  SF-TOGGLE     "Alpha-weighting" TRUE
  SF-OPTION     "Edge"            CONV-PRESET-EDGE-LIST
  SF-TOGGLE     "Gray Channel"    FALSE
  SF-TOGGLE     "Red Channel"     TRUE
  SF-TOGGLE     "Green Channel"   TRUE
  SF-TOGGLE     "Blue Channel"    TRUE
  SF-TOGGLE     "Alpha Channel"   FALSE)
(script-fu-menu-register "script-fu-convolution-presets-blur-symmetric"
                "<Image>/FX-Foundry/Convolution Matrix Presets")

)

i.e. the script-fu-register function call is within an 'if' clause.
Now I get the error message

script-fu-Warning: Procedure script-fu-convolution-presets-blur-symmetric in script-fu-menu-register does not exist

What can I do about this?

Many thanks for a hint,
Helmut


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]