This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > PainShop Pro Scripting > November 2007 > Grid Script v2.0





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Grid Script v2.0
BWPanda

2007-10-25, 6:24 pm

underprocessable
Harley

2007-10-25, 6:24 pm

Question (please see the attached): I utilized your script on a transparent
background but end up with an "open" grid on the right side and an "open"
bottom even though I specified a border. I would like to close it up with
a border, is it something I am doing wrong? I used numbers of vertical and
horizontal lines as well as specified "no" and still get the same results.
My canvas is 700 x 150. Thank you.

Harley

"BWPanda" <http://www.panda.id.au@cnews1.corel.dmz> wrote in message
news:4720ac44_2@cnews...
>
> I've finished updating my grid script!
>
> The main difference is that I added the ability to specify the spacing
> between the grid lines (as opposed to specifying the number of lines).
>
> On the code side of things, I modularised it (put everything into
> functions) which hopefully makes it easier to read (but could just as
> easily have done the opposite...)
>
> Please test it out and let me know what you think.
> Specifically, what do you think of the numeric restrictions and defaults
> I've used (i.e. the maximum and minimum numbers you're allowed to use, and
> the default values)?
>
> This script should work in all versions without any changes needed,
> hopefully :)
>
> I look forward to hearing your feedback!
>
> --
> Kind regards,
> Peter Anderson.
> (Fuji FinePix S9500)
> http://www.panda.id.au
>
>


Spandex Rutabaga

2007-10-25, 6:24 pm


BWPanda wrote:
>
> I've finished updating my grid script!
>
> The main difference is that I added the ability to specify the spacing between
> the grid lines (as opposed to specifying the number of lines).


With the previous "number of lines" approach, adding a border
resulted in a symmetric image because the original image was
also symmetrical. (Tiny few-pixel images are an exception.) When
"space between lines" is used, the result need not be symmetrical.
What should be happening to the border in this latter case?
Should it be unsymmetrical, symmetrical but partly outside the
image canvas, absent entirely, or something else?

Joëlle

2007-10-25, 6:24 pm

underprocessable
BWPanda

2007-10-25, 10:18 pm


"Harley" <Davidson@95Heritage.com> wrote in message news:4720ba45_3@cnews...
> Question (please see the attached): I utilized your script on a transparent
> background but end up with an "open" grid on the right side and an "open"
> bottom even though I specified a border. I would like to close it up with
> a border, is it something I am doing wrong? I used numbers of vertical and
> horizontal lines as well as specified "no" and still get the same results.
> My canvas is 700 x 150. Thank you.
>
> Harley
>



I'm having trouble understanding what you did to get this, could you please post
the answers you made to each of the prompts so I can replicate your results?
I might change the script to add a 'print' for each prompt, that way people can
copy and paste from the script window to show exactly what they used to get a
particular effect...

--
Kind regards,
Peter Anderson.
(Fuji FinePix S9500)
http://www.panda.id.au



BWPanda

2007-10-25, 10:18 pm


"Spandex Rutabaga" <SpRu@agabatur.xednaps> wrote in message
news:4720BD8F.7741635E@agabatur.xednaps...
>
> With the previous "number of lines" approach, adding a border
> resulted in a symmetric image because the original image was
> also symmetrical. (Tiny few-pixel images are an exception.) When
> "space between lines" is used, the result need not be symmetrical.
> What should be happening to the border in this latter case?
> Should it be unsymmetrical, symmetrical but partly outside the
> image canvas, absent entirely, or something else?
>


If you're asking how I programmed it, I decided not to use a border, as it could
result in lines being too close together along the edges of the image. For this
reason, I gave the user a choice as the where the start position of the grid
should be, so they can line it up to any side, part of the grid (try setting
this to the middle of the grid for a symmetrical result).
If you're asking what the ideal thing to happen would be, well that's for you to
answer, and for me to consider changing, if need be :)


--
Kind regards,
Peter Anderson.
(Fuji FinePix S9500)
http://www.panda.id.au



Narelle

2007-10-25, 10:18 pm

underprocessable
BWPanda

2007-10-25, 10:18 pm


"Narelle" <narellrussellAT@optushomeDOT.comDOT.au> wrote in message
news:47212ca5_2@cnews...
> Joëlle I got the 1st one to work but find this one confusing, this is the
> best I can do, I couldn't space two lines at different widths.:-((
> I love your attempt.


I think she may have moved the lines manually on the vector layer...

--
Kind regards,
Peter Anderson.
(Fuji FinePix S9500)
http://www.panda.id.au



BWPanda

2007-10-25, 10:18 pm

underprocessable
Narelle

2007-10-25, 10:18 pm



"BWPanda" <http://www.panda.id.au@cnews1.corel.dmz> wrote in message
news:47213b40_3@cnews...
>
> Attached is version 2.1 of my grid script.
> It now prints the parameters you used at the bottom of the script window

so you
> can easily see what you did to get a certain effect, or copy and paste

here to
> show others for help or debugging.
> Enjoy!
>
> --
> Kind regards,
> Peter Anderson.
> (Fuji FinePix S9500)
> http://www.panda.id.au
>
>

Thanks for the script Panda :-)

Narelle



BWPanda

2007-10-25, 10:18 pm

underprocessable
Narelle

2007-10-25, 10:18 pm



"BWPanda" <http://www.panda.id.au@cnews1.corel.dmz> wrote in message
news:4721493c_3@cnews...
>
> Attached are some basic instructions for using the script.
> Please let me know if anything is unclear.
>
> --
> Kind regards,
> Peter Anderson.
> (Fuji FinePix S9500)
> http://www.panda.id.au
>
>

That is clear, thanks :-)

Narelle



Spandex Rutabaga

2007-10-26, 3:39 am


BWPanda wrote:
>
> "Spandex Rutabaga" <SpRu@agabatur.xednaps> wrote in message
> news:4720BD8F.7741635E@agabatur.xednaps...
>
> If you're asking how I programmed it, I decided not to use a border, as it could
> result in lines being too close together along the edges of the image. For this
> reason, I gave the user a choice as the where the start position of the grid
> should be, so they can line it up to any side, part of the grid (try setting
> this to the middle of the grid for a symmetrical result).


I'm only asking how it is intended to work :) Without knowing
that it's hard to say if it's behaving as expected.

Joëlle

2007-10-26, 6:17 am

underprocessable
Joëlle

2007-10-26, 6:17 am



"Joëlle" <frogsnwmail-ng@yahoo.co.uk> wrote in message
news:4721b53f_3@cnews...
>
>
> "Narelle" <narellrussellAT@optushomeDOT.comDOT.au> wrote in message
> news:47212ca5_2@cnews...
> -snip-
>
> I opened the Vector layers, clicked (highlighted) the line I wanted to
> move, hit K on the keyboard to select the line in the image and moved it.
> Same with the other lines.
> See attached. Used a different image, I didn't keep the other one's
> twiddles.
>
> :-)
> Joëlle
>
>


Oops, spot the deliberate mistake... the arrows are pointing at the wrong
line.




Spandex Rutabaga

2007-11-11, 3:16 am

BWPanda wrote:
>
> I've finished updating my grid script!
>
> The main difference is that I added the ability to specify the spacing between
> the grid lines (as opposed to specifying the number of lines).
>
> On the code side of things, I modularised it (put everything into functions)
> which hopefully makes it easier to read (but could just as easily have done the
> opposite...)
>
> Please test it out and let me know what you think.


When you run the script it uses whatever line style was set in the
Pen tool at the time. If that happens to be an arrow, for instance,
or something more exotic like barbed wire, the result is a bit
bizarre. Perhaps the script could warn about that, set a particular
line style, or ask which of the sensible default line styles you
want. (Sensible to me are solid, dashed, dotted, and permutations
thereof.) Or else one could just teach oneself to remember to set
a sane line style before running the script :)
Joëlle

2007-11-11, 6:15 am


"Spandex Rutabaga" <SpRu@agabatur.xednaps> wrote in message
news:473683FC.141A03A0@agabatur.xednaps...

-snip-

> When you run the script it uses whatever line style was set in the
> Pen tool at the time.


To test this I changed the Line to a dotted line, but when I ran the script
it reverted to the solid line.
I am using version 2.1.
I can change the lines later, for fun effects, but the default is a solid
line.
:-)
Joëlle


BWPanda

2007-11-11, 6:19 pm

I think it just uses the default line style in PSP. Perhaps your default is
different...?
I got the same results as Joelle.

--
Kind regards,
Peter Anderson.
(Fuji FinePix S9500)
http://www.panda.id.au


Spandex Rutabaga

2007-11-11, 6:19 pm

BWPanda wrote:
>
> I think it just uses the default line style in PSP. Perhaps your default is
> different...?
> I got the same results as Joelle.


My mistake. I seem to have run an earlier version of the script
instead of v2.1. I didn't spot that the subject changed part way
through the thread from v2.0 to v2.1. There is one problem in
the v2.1 script. It won't run in PSP 9 unless you change all the
PSPUtils references to JascUtils. (That amounts to two places,
i.e. import PSPUtils and PSPUtils.RequireADoc.) You might want
to issue an official v2.2 with those changes.
Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews