It is currently Wed Jun 26, 2024 2:48 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Scripting my head into a wall - Any help would be appreciated
PostPosted: Mon Feb 13, 2023 8:48 pm  (#1) 
Offline
New Member

Joined: Feb 13, 2023
Posts: 1
Hi all

Long time reference-reader and now first-time poster.

I have been wrestling with my first attempt at a scheme script, having been a python-fu exclusive operator for years. And it is not going well.

I am trying to call a plugin of mine from a scheme script, so that it can be run with BIMP. (The plugin is not appearing due to file management conflicts as far as I understand)

So far I have:
(define (script-fu-batch-mockup image)
   (let* ((drawable (car (gimp-image-get-active-layer image))))
   (flux-freelance-mockup RUN-NONINTERACTIVE
                           image
                           drawable))
)
(script-fu-register
   "script-fu-batch-mockup"
   ""
   "Run the mockup generator"
   ""
   ""
   ""
   ""
   SF-IMAGE "Input Image" 0
   SF-DRAWABLE "Input Drawable" 0
)


But alas it is not working - after thousands of various iterations from all over, with GIMP throwing up:

Quote:
Calling error for procedure 'script-fu-batch-mockup':
Error: eval: unbound variable: flux-freelance-mockup


I have added the SF entries at the base, "RUN-NONINTERACTIVE", "script-fu-" at the beginning of the function and more attempts.

Any experienced insight would be much appreciated. I can see the potential in scheme, but so far it seems so alien to me.

Seb


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Scripting my head into a wall - Any help would be appreciated
PostPosted: Tue Feb 14, 2023 4:11 am  (#2) 
Online
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4750
From scheme your plugin is likely something like "python-fu-flux-freelance-mockup". In the Script-fu console, hit the "Browse" button, enter "freelance" in th search bar (top left), select you plugin, hit the "apply" button, and you have a call all written for you:

Attachment:
ksnip_20230214-100956.png
ksnip_20230214-100956.png [ 170.94 KiB | Viewed 370 times ]

_________________
Image


Top
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Five Panel Wall Art

4

No new posts Attachment(s) Create Wall Photo Strips plugin

4

No new posts Attachment(s) Neon Sign on wall plugin with animation option update #1

22

No new posts Attachment(s) Scripting GEGL functions

52

No new posts Attachment(s) Normal Map scripting function

6



* Login  



Powered by phpBB3 © phpBB Group