It is currently Thu Oct 08, 2026 9:59 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 52 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Thu Jun 04, 2015 11:59 pm  (#41) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
Why would there be a problem with portables? So long as there is a "scripts" folder in the gimp-directory it should work - even if the gimp-directory is something outlandish like "Z:\some\path\via\Timbuktoo\.gimp-oujamaflip" so long as the G'MIC environment variable "path_gimp" is set to that path (which it must be for G'MIC to work at all) and there is a "scripts" folder in that directory, then it should work.

As to the matter of script managers installing to sub-folders, I don't really see a way around that at the moment.


Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Fri Jun 05, 2015 12:03 am  (#42) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
JT2 by setting the path as and stipulating the installation of the presets to this new folder may be more foolproof

(gmic-presets-filename (string-append "@{-path_gimp}" DIR-SEPARATOR "gmic-presets" DIR-SEPARATOR "Gmic-Logos-presets.gmic"))

_________________
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: Fri Jun 05, 2015 12:08 am  (#43) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
That would be a folder called "gmic-presets" in your main gimp-directory (ie. .gimp-2.8).
I can't see that really helps either with scripts managers installing to sub-folders or with portables.


Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Fri Jun 05, 2015 1:03 am  (#44) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
separating the presets from the script would make it a lot easier for installation unless the presets could be included in the script file

_________________
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: Fri Jun 05, 2015 1:23 am  (#45) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2663
Location: California
Do I need the presets file and if so, where does the presets file go? I have Windows 7. 64 Bit.

Tested out the script presets these are the ones that didn't appear or give an error:
Hallucinogenic
In the Bushes
Flowers


Last edited by mackenzieh on Fri Jun 05, 2015 2:08 am, edited 2 times in total.

Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Fri Jun 05, 2015 1:45 am  (#46) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
Both the .scm and the .gmic file must go in your user scripts folder - NOT the system-wide scripts folder
ie.
On Windows: C:\Users\<user>\.gimp-2.8\scripts
On Linux: /home/<user>/.gimp-2.8/scripts


Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Fri Jun 05, 2015 2:16 am  (#47) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2663
Location: California
jontait2 wrote:
Both the .scm and the .gmic file must go in your user scripts folder - NOT the system-wide scripts folder
ie.
On Windows: C:\Users\<user>\.gimp-2.8\scripts
On Linux: /home/<user>/.gimp-2.8/scripts


For me on my PC, all of the presets now work through the GMIC Logos script. Thanks Jontait2. :)


Last edited by mackenzieh on Fri Jun 05, 2015 2:23 am, edited 1 time in total.

Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Fri Jun 05, 2015 2:21 am  (#48) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
Graechan wrote:
separating the presets from the script would make it a lot easier for installation

How so? It sounds like you're thinking of treating the .scm and .gmic as separate entities to be handled by installation managers. But if they are treated as separate entities, they can still both be installed to the normal scripts folder (surely?).

Graechan wrote:
the presets could be included in the script file

Including the presets in the script itself is a pretty horrible solution - I did have a look at that when David first suggested using a .gmic file, but there are problems:
- the entire set of presets would have to be stored in the script as one great long string (approx 60,000 characters) - which may be problematic - or broken-up into manageable units. I'm not sure whether TinyScheme does actually have a maximum string-length, but I have had problems trying to use very long strings before;


Last edited by jontait2 on Fri Jun 05, 2015 2:47 am, edited 1 time in total.

Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Fri Jun 05, 2015 2:34 am  (#49) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
mackenzieh wrote:
Okay, got it. So, what's the process to getting the scripts to work again? Is it through GMIC or the Gmic Logo Script?

<Image> Script-Fu> Logos> Gmic logos

These filters are not available in Gimp-G'MIC itself - even after installing this script you still won't be able to invoke the presets actually used by the script manually from the G'MIC plugin's menu tree - the presets are only loaded temporarily when the script runs, and then immediately forgotten about. The next time you run Gimp G'MIC it will have no "memory" of the presets!


Top
 Post subject: Re: Some Samj filters have Disappeared[Jontait2 is working on solution
PostPosted: Fri Jun 05, 2015 8:53 pm  (#50) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
jontait2 I've decided to include 2 methods of Installation
1/ std install, placing script and gmic-presets into the user folder/scripts folder or alternately
2/ placing script into 'Script Manager' or wherever their scripts are kept and installing the 'gmic-presets folder into their user folder

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


Top
 Post subject: Re: Some Samj filters have Disappeared[Solved by Jontait2]
PostPosted: Tue Jun 23, 2015 10:14 am  (#51) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
@Graechan
Unfortunately the syntax changes in G'MIC 1.6.5.0 have broken the "G'MIC Logos" script again - specifically, the 3 options which use presets in the newly-introduced Gmic-Logos-presets.gmic file (ie. "Hallucinogenic", "In the bushes" and "Flowers").

The problem is that the G'MIC command to load that file was using the @{-path_gimp} construct to find the user's .gimp-2.8 folder and that syntax has changed to ${-path_gimp}.

So I have amended the script to use the Script-Fu platform-specific literal "gimp-directory" instead - this should allow the script to work with both old and new versions of G'MIC.
Attachment:
Gmic Logos jthack5.scm [29.7 KiB]
Downloaded 113 times

Please try the above script on Windows and, if you're happy with it, rename as Gmic Logos.scm and post it on GimpScripts as Rel 2.1.
Cheers.


Top
 Post subject: Re: Some Samj filters have Disappeared[Solved by Jontait2]
PostPosted: Wed Jun 24, 2015 6:38 pm  (#52) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
jontait2 you are correct and I'll update A.S.A.P. thanx for the assist :bigthup

_________________
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

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group