It is currently Thu Aug 20, 2026 6:49 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 52 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: Some Samj filters have Disappeared!!!
PostPosted: Fri May 29, 2015 5:07 pm  (#21) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
Image


Top
 Post subject: Re: Some Samj filters have Disappeared!!!
PostPosted: Fri May 29, 2015 9:29 pm  (#22) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
Jontait2 thank you kindly for the big assist with Wild Cactus,
with no experience in doing Gmic commands in this fashion I was at a loss even after reading your script changes I still do not understand,
so would it be possible for you to append the other Samj filters I've used :tyspin
I'll add a file that contains the rest of the missing Samj filters

Attachment:
update1590.zip [561.89 KiB]
Downloaded 104 times

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Sat May 30, 2015 7:40 pm  (#23) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
Yeah, Graechan, I've had a look at the other presets, but there's a lot more work involved.
The two I've done were relatively trivial and just required the "core" command sequence extracted and parameters substituted.
But the other 3 are long presets and need a lot more thinking about. It would be better, really, to get these presets back into GMIC proper. I don't know why samj has removed them.

Oh, and the preset used by your "Hallucination" option uses another GMIC gimp- command which requires a text sequence enclosed in double quotes .. which is another problem .. I've already used escaped quotes to contain the GMIC command and so I can't nest another level of quotation ..not even sure there's a way around that yet.


Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Sat May 30, 2015 9:13 pm  (#24) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
jontait2 thank you for looking into these for me

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Sun May 31, 2015 3:03 am  (#25) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 14137
Location: Spain, Aragón
Thank you so much jontait2 and Graechan. You are fantastic! :tyspin

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.


Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Sun May 31, 2015 6:06 am  (#26) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Maybe a hint : you can include a complete G'MIC command file in a G'MIC pipeline, using the -command as well, like this :

-command command_file.gmic -command1 ...


where -command1 is defined in file command_file.gmic.
If you can put the command file in the same folder as your .scm script, I suppose there are no reasons your .scm script couldn't load it and use the G'MIC commands defined inside. Of course, doing this also overloads the previous commands defined with the same name.


Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Sun May 31, 2015 7:02 am  (#27) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
Hmmm...
That may well be a better way of doing it!
Thank you, David.


Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Mon Jun 01, 2015 8:35 pm  (#28) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
jontait2 do you think this will help you fix the Hallucinogenic and Colored Wind options

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Wed Jun 03, 2015 6:14 am  (#29) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
@Ronounours:
I have now tried running the missing samj filters from a .gmic file with some success.

Good news: these filters all work okay, both from my personal .gmic file (~/.gmic) and from a special file (~/.gimp-2.8/scripts/Gmic-Logos-presets.gmic) and with both GMIC versions 1.6.2.0 and 1.6.3.1pre ...so these filters have not been "broken" by the recent changes to GMIC.

Bad news: when run via the Gimp-GMIC plugin, the GMIC interpreter seems to require a full path specification (from root) ..it does not recognise "~" for the home directory . (It works okay using GMIC command-line from Linux terminal, of course, but not from the plugin!)
eg. if I try executing: (plug-in-gmic 1 1 0 1 "-command ~/.gimp-2.8/scripts/Gmic-Logos-presets.gmic"), I get this output on the Gimp console:
[gmic]-1./ Start G'MIC interpreter.
[gmic]-1./ Import custom commands from expression '~/.gimp-2.8/scripts/Gmic-Logos-presets.gmic'
[gmic]./ *** Error *** Command '-command': Syntax error in expression '~/.gimp-2.8/scripts/Gmic-Logos-presets.gmic'.
[gmic]-1./ Abort G'MIC interpreter.

[gmic_gimp]./error/ When running command '-command ~/.gimp-2.8/scripts/Gmic-Logos-presets.gmic', this error occured :
*** Error in ./ *** Command '-command': Syntax error in expression '~/.gimp-2.8/scripts/Gmic-Logos-presets.gmic'.

I'm not even sure what directory the Gimp-GMIC plugin takes as its default-directory ..it's not ~ or ~/.gimp-2.8 or even ~/.gimp-2.8/plugins.
So the only way I've managed to get this to work so far is by specifying a full path like this:
(plug-in-gmic 1 1 0 1 "-command /home/jjt/.gimp-2.8/scripts/Gmic-Logos-presets.gmic")

This is obviously going to be a bit of a problem because it is platform-dependent and user-specific.
[In Python, there is an "os" library with methods to automatically construct pathnames for the particular platform in use, but there is no equivalent in TinyScheme ...so constructing pathnames is always rather problematic.]

Any ideas?

Since the filters work perfectly well from ~/.gmic, I still think the best solution would be to get these filters back into the Gimp-GMIC filter repository ..I don't know why samj took them out (if she did) but if she doesn't want to maintain them any more, perhaps you could (at least temporarily) adopt them into Testing>Ronounours. That way, the filters will also be available to the user for manual invocation in the Gimp-GMIC filter tree.


Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Wed Jun 03, 2015 10:29 am  (#30) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Maybe this could help :
-command @{-path_gimp}/plug-ins/yourfile.gmic


?


Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Wed Jun 03, 2015 10:35 am  (#31) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
Aha! Excellent, that works. Thank you David, I'll have another try now.

Edit:
Just as a footnote:
Script-Fu does provide some platform-specific literals to construct pathnames, including:
gimp-directory = "/home/<user>/.gimp-2.8" (Linux) or "\Users\<user>\.gimp-2.8" (Windows)
DIR-SEPARATOR = "/" (Linux) or "\" (Windows)

So the same effect can be achieved thus:
(plug-in-gmic 1 image 0 1 (string-append "-command " gimp-directory DIR-SEPARATOR "scripts" DIR-SEPARATOR "Gmic-Logos-presets.gmic"))


Last edited by jontait2 on Thu Jun 04, 2015 1:01 am, edited 2 times in total.

Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Wed Jun 03, 2015 1:54 pm  (#32) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
We have the technology to re-build him it...

Image
Image
Image
Image
Image

@Graechan
I've tested this on Linux but not Windows ..it should work okay, but...
Please give it a good testing and then, if and when you're happy, make an official release on GimpScripts.
(Change my "hack3" designation to your Rel 1.5 or whatever.)

Attachment:
Gmic Logos script & presets.zip [15.52 KiB]
Downloaded 114 times
Unzip and copy both files to your personal scripts folder.

Edit:
I have now tested this on Windows 7 x64 and it seems to work okay.. over to you Graechan.


Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Thu Jun 04, 2015 9:25 pm  (#33) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
jontait2 unfortunately only 'Wild Cactus' and 'Colored Wind' worked, I'd like to get 'Hallucinogenic' also working
Note the 2 working files are OK with or without Gmic-Logos-presets.gmic in scripts folder

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Last edited by Graechan on Thu Jun 04, 2015 10:25 pm, edited 1 time in total.

Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Thu Jun 04, 2015 9:53 pm  (#34) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
That's strange!
Has anybody else tested this latest version - if so, did it work? (I notice that it's been downloaded several times, presumably by people other than Graechan).

@Graechan:
please try starting Gimp from console and see what messages come out when you try running the script for eg. "Hallucinogenic".


Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Thu Jun 04, 2015 10:30 pm  (#35) 
Offline
GimpChat Member
User avatar

Joined: Mar 16, 2015
Posts: 613
Location: On Earth,specifically Queensland,Australia
It runs OK on my Linux gimp 2.8.14 running Gmic 1.6.3.1.Image

_________________
Image


Last edited by Kimba on Thu Jun 04, 2015 10:38 pm, edited 1 time in total.

Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Thu Jun 04, 2015 10:34 pm  (#36) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
Okay, thank you Kimba.


Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Thu Jun 04, 2015 10:48 pm  (#37) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
JT2 how does gmic see the 'Gmic-Logos-presets.gmic' file if it's in the scripts folder?

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Thu Jun 04, 2015 11:01 pm  (#38) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
Graechan wrote:
JT2 how does gmic see the 'Gmic-Logos-presets.gmic' file if it's in the scripts folder?

The initial declaration (at line 86 in the latest script):
(gmic-presets-filename (string-append "@{-path_gimp}" DIR-SEPARATOR "scripts" DIR-SEPARATOR "Gmic-Logos-presets.gmic"))

sets up the path-string which will be passed to the G'MIC plugin and thence the G'MIC interpreter.

[The "@{-path_gimp}" tells the G'MIC interpreter to use the setting in it's environment variable "path_gimp" as the start of the pathname; that should be automatically set to "C:\Users\<user>\.gimp-2.8" on a Windows system.]

As I said above, please try starting Gimp from console and see what messages come out when you try running the script for eg. "Hallucinogenic".


Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Thu Jun 04, 2015 11:15 pm  (#39) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
This is the error returned when running
Quote:
Gmic Logos-Warning: Error while executing script-fu-gmic-logos:

Error: ( : 1) Procedure execution of plug-in-gmic failed on invalid input argume
nts


GIMP-Warning: Plug-In 'Gmic Logos' left image undo in inconsistent state, closin
g open undo groups.

your reply does however give me a hint as to why it failed in my computer

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Thu Jun 04, 2015 11:31 pm  (#40) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
Sorry JT2 I missed the path you set and installed in scripts/test scripts, no wonder it did not work,
problem is many people insert via script managers an in sub files of scripts portables will also give troubles
Image

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
Post new topic Reply to topic  [ 52 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group