Switch to full style
Post all Gimp scripts and script writing questions here
Post a reply

samj/Orbites

Tue Mar 19, 2019 6:45 am

:wvy
In his blog here:
https://samjcreations.blogspot.com/2018 ... bites.html
He indicates:
Some lines of commands:
samj_Orbites 100,0,0,0,255,50,50,15,39,49,15,240,128,64,255,0,5,0,0,0,0,0,0,0

samj_Orbites 100,0,0,0,255,50,50,20,79,45,4,48,34,240,255,0,0,0,0,0,0,0,0

samj_Orbites 100.0,0,0,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

I thought the numbers indicated the setting of the sliders but there are 13 and not 23.
So these command lines are for Linux and can not be used with Windows?

Re: samj/Orbites

Tue Mar 19, 2019 7:30 am

Sometimes worth enabling the gmic_gimp log. gmic -> settings -> other

The extra settings are the colours: R, G, B + Alpha and there are two of those. Then there are the tick boxes to take into account, not ticked but still have a value.

orbit.jpg
orbit.jpg (162.41 KiB) Viewed 3405 times

Re: samj/Orbites

Tue Mar 19, 2019 8:06 am

thank you rich2005 Image for your detailed explanations.
In "other", what should I change?
Image Image

Re: samj/Orbites

Tue Mar 19, 2019 8:28 am

1) Use the 'verbose' to logfile

verbose-log.jpg
verbose-log.jpg (20.59 KiB) Viewed 3390 times


Find the log file gmic_qt_log in the samj folder GMIC_Filters\gmic

log-file.jpg
log-file.jpg (60.95 KiB) Viewed 3390 times

Re: samj/Orbites

Tue Mar 19, 2019 3:20 pm

I opened the file "gmic_qt_log" in notepad ++ while I opened G'Mic, and then I saved the file.
Image

Sorry to be so silly, but when I open G'Mic again and the filter Orbites, I searched in vain how I could test each of the command lines .... If I open again the file "gmic_qt_log ", I see the lines and others corresponding to filters tested later.

And subsidiary question related to this topic: I wondered for some time how to keep a particular setting for a filter, other than a screenshot.

Re: samj/Orbites

Tue Mar 19, 2019 4:40 pm

... I searched in vain how I could test each of the command lines ....


If you go back to your first post one of the samj commands is

samj_Orbites 100,0,0,0,255,50,50,20,79,45,4,48,34,240,255,0,0,0,0,0,0,0,0

Bottom of the gmic_gimp menu is Various -> Custom Code [Local] you can use this to test the code.

Initially looks like this:

01-test.jpg
01-test.jpg (82.59 KiB) Viewed 3349 times



Just delete that text and (copy/paste) put the new text in.

02-test.jpg
02-test.jpg (98.38 KiB) Viewed 3349 times


Update will give a preview and OK will render the filter.

What else can you do with the log file entries.

The script attached, easy to paste the gmic command in. Just be careful about line indents and quotes. Open it up in notepad++ easy to see the added lines. Just a couple of lines I added for this post. Renders that samj code then adds another filter.

It is a script, put in your scripts folder. Find it bottom of the Filters menu along side gmic.

...If I open again the file "gmic_qt_log ", I see the lines and others corresponding to filters tested later.


When the log file becomes too large /confusing. Just delete it and start again.

Re: samj/Orbites

Wed Mar 20, 2019 2:44 am

:wvy
Thank you rich2005, I will try to do this today.
For "Custom Code [Local]", I had wondered if I could use it for:
https://samjcreations.blogspot.com/2019 ... -gimp.html
and now I have the answer. :)

Re: samj/Orbites

Wed Mar 20, 2019 6:23 am

Looks really neat when you map to sphere. :bigthup

Image

To this.

Image
Post a reply