[Gimp-developer] Fw: Hello! I neeed help with the gimp-pencil function of Script-fu





Begin forwarded message:

Date: Wed, 26 Oct 2022 01:07:17 +0300
From: Tatsu Takamaro <tatsu takamaro gmail com>
To: Shlomi Fish <shlomif shlomifish org>
Subject: Re: [Gimp-developer] Hello! I neeed help with the gimp-pencil function
of Script-fu


Hi again. It didn't work. Says Error: Invalid type for argument 3 to 
gimp-pencil

вт, 25.10.2022 19:53, Shlomi Fish пишет:
hi Tony!

On Tue, 25 Oct 2022 10:11:10 +0300
Tatsu Takamaro via gimp-developer-list<gimp-developer-list gnome org>  wrote:
 
Hi!

I hope I found the right e-mail to ask. I've got just one question so I
don't want to register on forums, maybe you could help me.

I'm writing a script on Script-fu for GIMP. There is this line in my code:

(gimp-pencil draw 2 #(500 1600))

It draws one small dot and does it well. But when I write it this way:

(gimp-pencil draw 2 #(s1x s2x))

... it returns error: "Error: Item 1 in vector is not a number (argument
3 for function gimp-pencil) #(s1x s2x) "

The variables themselves are passed to the script correctly, they took
part in calculations before that line and gave the correct result, so
I'm sure, that GIMP treats s1x and s2x as numbers.

So what am I doing wrong?  
use:

(list s1x s2x)

or `(...) - backtick

there is python-fu too.








 

Tony.
_______________________________________________
gimp-developer-list mailing list
List address:gimp-developer-list gnome org
List membership:https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:https://mail.gnome.org/archives/gimp-developer-list  

 


-- 

Shlomi Fish       https://www.shlomifish.org/
https://github.com/shlomif/shlomif-computer-settings/ - my dotfiles

Thank God I found the good in goodbye!
    — “Best Thing I Never Had”, Beyoncé

Please reply to list if it's a mailing list post - https://shlom.in/reply .


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]