Thank you for responding but I am still confused.
I was following a youtube video called "GIMP Script-Fu 2: Write Your First Script" ( forum wont let me post link)
Quote:
When you register a script, if the first two arguments of the script are in that order, and image and a drawable (so SF-IMAGE and SF-DRAWABLE in script-fu), they will be set to the current image and the image active drawable when script is called, and this is the normal way to register a script.
That is what I thought and why I didn't use "gimp-image-get-active-layer" in the registered script. I was trying to get it to trouble shoot and get it to work in the console and the only thing that works there is
(gimp-item-transform-perspective (car(gimp-image-get-active-layer 1)) 272 154 450 217 275 666 448 618)
The console wouldn't work either until I called (car) on the function for the active layer.
I rewrote this script but it still is failing with Execution error for 'Mockup':
Error: eval: unbound variable: script-fu-mockup
(define (mockup image layer)
(gimp-item-transform-perspective layer 272 154 450 217 275 666 448 618)
)
(script-fu-register
"script-fu-mockup"
"<Image>/Tools/Transform Tools/Mockup"
"Image mockup placement tool."
"GQ"
"GQ"
"September 15"
"RGB*, Gray*"
SF-IMAGE "image" 0
SF-DRAWABLE "layer" 0
)
If you could point out in this code where I am going wrong it would be greatly appreciated.