It is currently Mon Jul 22, 2024 12:23 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Help needed with proceedure My dilema today is-[Solved]
PostPosted: Sun Sep 29, 2013 10:59 pm  (#1) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Wilbur tells me, Error: ( : 1) Invalid type for argument 13 to file-gih-save.
I have a Grayscale Image with 26 layers
I can export INTERACTIVE with same settings OK

(file-gih-save RUN-NONINTERACTIVE image
(car (gimp-image-get-active-layer image)) ;drawable
path ;filename [The name of the file to save the brush pipe in]
path ;raw-filename [The name of the file to save the brush pipe in]
100 ;spacing
font ;description
width ;cell-width
height ;cell-height
1 ;display-cols
1 ;display-rows
1 ;dimension
26 ;rank<----------------error points here
1 ;dimension
INCREMENTAL) ;sel

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


Last edited by Graechan on Mon Sep 30, 2013 2:04 am, edited 1 time in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Help needed with proceedure My dilema today is-
PostPosted: Sun Sep 29, 2013 11:47 pm  (#2) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
26 ;rank should have been (26) ;rank but now INCREMENTAL is incorrect

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


Top
 Post subject: Re: Help needed with proceedure My dilema today is-
PostPosted: Mon Sep 30, 2013 12:06 am  (#3) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Graechan wrote:
Wilbur tells me, Error: ( : 1) Invalid type for argument 13 to file-gih-save.

Shouldn't the data type for rank be an 8bit integer array (INT8ARRAY)?

Not sure the number of array elements expected by the procedure but shouldn't the syntax be something along the lines of ..

(set! rank (cons-array 3 'byte))
   (aset rank 0 intvalue1)
   (aset rank 1 intvalue2)
   (aset rank 2 intvalue3)

In this example, rank is a vector with 3 elements assigned as intvalue1, intvalue2 & intvalue3.

http://www.gimp.org/docs/scheme_plugin/ ... rview.html

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Help needed with proceedure My dilema today is-
PostPosted: Mon Sep 30, 2013 12:55 am  (#4) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
GnuTux I think Your right, also do you think the 'sel' setting should be set along the same lines
and if so where would it differ as it asks for a 'STRINGARRAY'

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


Top
 Post subject: Re: Help needed with proceedure My dilema today is-
PostPosted: Mon Sep 30, 2013 1:19 am  (#5) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
That didn't work either, Wilbur dislikes me today. I'll try something else maybe SaulGoode knows the answer as it would be worth knowing
I've been trying for 2 days now

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


Top
 Post subject: Re: Help needed with proceedure My dilema today is-
PostPosted: Mon Sep 30, 2013 1:25 am  (#6) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
(file-gih-save RUN-NONINTERACTIVE
               image
               (car (gimp-image-get-active-layer image)) ;drawable
               path ;filename [The name of the file to save the brush pipe in]
               path ;raw-filename [The name of the file to save the brush pipe in]
               100 ;spacing
               font ;description
               width ;cell-width
               height ;cell-height
               1 ;display-cols
               1 ;display-rows
               1 ;dimension
               (vector 26)
               1 ;dimension
               (list "incremental")

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Help needed with proceedure My dilema today is-
PostPosted: Mon Sep 30, 2013 1:52 am  (#7) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Graechan wrote:
That didn't work either, Wilbur dislikes me today.

Actually, it does work. You can check it from the console...

> (set! rank (cons-array 1 'byte))
#(0)
> (aset rank 0 26)
#(26)

It returns the exact same value as using the vector function...

> (vector 26)
#(26)

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Help needed with proceedure My dilema today is-
PostPosted: Mon Sep 30, 2013 2:03 am  (#8) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Thank you SaulGoode, that did the trick. Thanks also to all who considered my problem

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


Top
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) GTK help needed text in black needed

5

No new posts Attachment(s) Today

16

No new posts Attachment(s) Today

8

No new posts Attachment(s) Today's scare.

1

No new posts Attachment(s) Offer of today

2



* Login  



Powered by phpBB3 © phpBB Group