Sign up now! · Forgot password?
RSS/Atom feed Twitter

Script Fu Help

4 of 4 messages available
Toggle history

Please log in to manage your subscriptions.

Script Fu Help Bongobat 16 Sep 13:14
  Script Fu Help Bongobat 16 Sep 17:35
  Script Fu Help rich404 17 Sep 10:51
  Script Fu Help DaquanRodriquez 21 Sep 06:38
2022-09-16 13:14:41 UTC (8 days ago)
postings
2
contact
Send private message

Script Fu Help

Hi I am new to GIMP and I'm trying to use script-fu to make a simple script that takes the active layer and adjusts the perspective to fit some known coordinates but it's failing and I can't figure out why and was hoping someone could help. Here is the code

(define (Mockup x) (gimp-item-transform-perspective x 272 154 450 217 275 666 448 618) )

(script-fu-register
"script-fu-mockup"
"/Tools/Transform Tools/Mockup"
"Image mockup placement tool."
"GQ"
"GQ"
"September 15"
"RGB*, Gray*"
SF-DRAWABLE "x" 0
)

2022-09-16 17:35:06 UTC (8 days ago)
postings
2
contact
Send private message

Script Fu Help

Hi I am new to GIMP and I'm trying to use script-fu to make a simple script that takes the active layer and adjusts the perspective to fit some known coordinates but it's failing and I can't figure out why and was hoping someone could help.
Here is the code

(define (Mockup x) (gimp-item-transform-perspective x 272 154 450 217 275 666 448 618) )

(script-fu-register
"script-fu-mockup"
"/Tools/Transform Tools/Mockup"
"Image mockup placement tool."
"GQ"
"GQ"
"September 15"
"RGB*, Gray*"
SF-DRAWABLE "x" 0
)

I think its got something to do with passing the layer id to (gimp-item-transform-perspective) I discovered the function called CAR (Contents of Address Register) and tried applying it to a variable after getting the id with (gimp-image-get-active-layer 1) but it wont work in the registered code however

(gimp-item-transform-perspective (car(gimp-image-get-active-layer 1)) 272 154 450 217 275 666 448 618)

Works perfectly in the script fu console. Any hints on how i could get it to work in a registered script would be appreciated.

2022-09-17 10:51:19 UTC (8 days ago)
postings
57

Script Fu Help

Hi I am new to GIMP and I'm trying to use script-fu to make a simple script that takes the active layer and adjusts the perspective to fit some known coordinates but it's failing and I can't figure out why and was hoping someone could help.
Here is the code

(define (Mockup x) (gimp-item-transform-perspective x 272 154 450 217 275 666 448 618) )

(script-fu-register
"script-fu-mockup"
"/Tools/Transform Tools/Mockup"
"Image mockup placement tool."
"GQ"
"GQ"
"September 15"
"RGB*, Gray*"
SF-DRAWABLE "x" 0
)

If you look around this forum you see it has been largely abandoned.

Post your question on a more active Gimp forum. gimpchat.com would be a good starting point.

2022-09-21 06:38:20 UTC (4 days ago)
postings
1
contact
Send private message

Script Fu Help

A user is filed for the improvement for the challenges. The attempt of the funds placed by all issues. Now, the visitors of the https://milesupshore.rpginitiative.com/showthread.php?tid=897 are held for the citizens. Its impact is fit for the top of the cycled items for the estimated look for the field work in all issues.