0

> (cadr '(1 2 3)) Error: eval: unbound variable: cadr

I think who are familiar with script-fu should think as i am, this is so weir. Just few day ago, i ran some thing like "cadr" or even "caaadr" smoothly. Please help me.

i search on google 10 pages but there are not thing similarly.

  • Do you mean "weird"? – Barmar Apr 04 '23 at 17:09
  • Do the other functions like `caar` work? – Barmar Apr 04 '23 at 17:10
  • yes, of course weird :)). I've try `caar` and the result is the same. `> (caar '(1 2 3)) Error: eval: unbound variable: caar` –  Apr 04 '23 at 17:22
  • and i use the latest version of GIMP -> 3.10.34 –  Apr 04 '23 at 17:24
  • Did you upgrade gimp between the last time it worked and now? – Shawn Apr 04 '23 at 20:27
  • Last version is 2.10.34, not 3.10.34. `cadr` is used in 22 of the standard scripts, such as `Drop shadow (legacy)`. Do these still work? Do they work in a script but not in the script-fu console, or the script-fu console but not in a script, and don't work anywhere? – xenoid Apr 04 '23 at 20:52
  • No where they work. I run `Drop shadow` and also `cadr` on both script or script-fu console but it pop up error. In last test, i run `car` on script, it work well. –  Apr 04 '23 at 22:54
  • @Shawn: Yes, i've upgrade GIMP one time when it didn't include Py-fu. May be the matter appear after that. I've also uninstall gimp and reinstall with flatpak, but the problem still –  Apr 04 '23 at 22:59

1 Answers1

0

cadr, caar etc are defined in the script-fu.init file that should be in the same place as all the GIMP-supplied scripts (drop-shadow.scm, erase-lines.scm etc)

On my Windows installation this is C:\Program Files\GIMP 2.10\share\gimp\2.0\scripts\script-fu.init

Kevin
  • 1