I wrote this script and when I click on the font button I get the error dialog.
(define (script-fu-text-box inText inFont inFontSize inTextColor))
(script-fu-register
"script-fu-text-box" ;func name
"Load Text" ;menu label
"Loads the corresponding text file." ;description
"me" ;author
"copyright 2021, me" ;copyright notice
"March 16, 2021" ;date created
"" ;image type that the script works on
SF-STRING "Text" "Text Box" ;a string variable
SF-FONT "Font" "Charter" ;a font variable
SF-ADJUSTMENT "Font size" '(50 1 1000 1 10 0 1)
;a spin-button
SF-COLOR "Color" '(0 0 0) ;color variable
)
(script-fu-menu-register "script-fu-text-box" "<Image>/File/Create/Text")
I have a bunch of jpg picture files that have corresponding text files (same name but .txt instead of .jpg).
I want the script to load the text of the corresponding text file.
I'm hoping I can get the full path of the loaded jpg and replace .jpg with .txt and then load the text and create a text layer.
I have hundreds of images with corresponding text files so I'm hoping I can run this from the command line.
If someone wants give me a head start then that would be great. :-)