It is currently 24 Oct 2020, 07:02

• Featuring Members' Works (Image Attachments) •
1: member
2: member
3: member
4: member
5: member

GIMP/GL:  Tutorials | Tips | Questions | Interests | 🡆 Script Requests
Recommendations:  Index | Top 10
Resources:  Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Simple numeric script searched please

Post your Script Requests for GIMP here.
Forum rules
Request your Script(s) for GIMP here in this forum.
Provide details of steps performed in GIMP so that script can be written for the process and also give the request a name so that scripts can be named after.
Post Reply
Benutzer443
Forum Member

Simple numeric script searched please

Post#1 by Benutzer443 » 09 Oct 2020, 17:58


Hi, can someone please give me a script for gimp that generates numbers from 0 - X and these properties are adjustable: font, size, color, bold on or off? And it should be in the center. Each numbers should seperated on a layer.

Regards
GIMP Learn rocks...
0

Graechan
Script Coder

Post#2 by Graechan » 10 Oct 2020, 00:44


(set! number (number->string
(modulo (realtime)
(* 60 60 24))))
0

Graechan
Script Coder

Post#3 by Graechan » 10 Oct 2020, 01:06


or simply use (random 1000) from within a script to generate a random number from 0 to 1000
0

Benutzer443
Forum Member

Post#4 by Benutzer443 » 10 Oct 2020, 09:56


And how do I hand over the gimp without it just giving me the numbers in the console? I want him to draw this number on a separate layer.
GIMP Learn rocks...
0

Graechan
Script Coder

Post#5 by Graechan » 11 Oct 2020, 06:39


Check script 'Number Generator' viewtopic.php?f=4&t=2799I don't know what you want a simple numeric script for so maybe this is it or could you give a complete and explicit outline of your requirements
0

Steve Reid
Script Coder

Post#6 by Steve Reid » 12 Oct 2020, 08:32


Hello Benutzer443

My try at a script which seems to run ok on my gimp 2.8.22
random-numbers-to-layers.py
(1.9 KiB) Downloaded 12 times
After placing the script in your python plug in folder, start gimp and it will be found at "Image>/Python-Fu/Random numbers to layers"

If the script is going in the direction you want and you would like the default settings changed please just let me know

steve
GIMP Learn rocks...
1

Benutzer443
Forum Member

Post#7 by Benutzer443 » 14 Oct 2020, 13:34


Hey steve this is what i want but the numbers should not be random but start at 0 and go to X. Then it would be perfect :-)
GIMP Learn rocks...
0

Benutzer443
Forum Member

Post#8 by Benutzer443 » 14 Oct 2020, 13:40


I changed the script a bit, now it fits, thanks!
GIMP Learn rocks...
0

Steve Reid
Script Coder

Post#9 by Steve Reid » 15 Oct 2020, 10:05


Glad to see you got it working to suit your needs :)
GIMP Learn rocks...
0


GIMP/GL:  Tutorials | Tips | Questions | Interests | 🡆 Script Requests
Recommendations:  Index | Top 10
Resources:  Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 6 guests