|
| Re: Script to draw a rectangle |
 |
Sat, 23 Feb 2008 16:37:45 -070 |
"color's free" <aitches_2@yahoo.com> wrote in
news:47c0a743$1_3@cnews:
>
> "color's free" <aitches_2@yahoo.com> wrote in message
> news:47c0a1fc_2@cnews...
>>
>> "JoeB" <mymail@myserver.com> wrote in message
>> news:Xns9A4D9F976F94BJoeB@207.107.16.194...
>>> "SuzShook" <suzshook@roadrunner.com> wrote in
news:47c09dbf_3@cnews:
>>>
>>>> Another way to edit the line width is to make the
"Rectangle"
>>>> sublayer the active layer and choose Objects...Properties.
>>>>
>>>
>>> Actually, it's even easier to just double-click the Rectangle
>>> sublayer, which will bring up the Vector Property dialogue.
>>>
>>> But you forgot to post the modified script for him :-)
>>>
>>> Regards,
>>>
>>> JoeB
>>
>> Ok, I'm looking forward to the revision. You booth mentioned
>> sublayer. Is the whole border layer considered a sublayer or is there
>> a layer hiding somewhere that I haven't found?
>>
>> Also, what do the numbers used for the width use for units? Are they
>> pixels? Can the dialog ask for inches?
>>
>> Harv
>>
>
> OK, I changed the color from 255,255,255 to 0,0,0, and now I get a
> black line. Noticed one thing, unlike G code (machine programming
> language) you can't use a semi-color and then type a remark. The
> program halts at the semi-colon. I tried to add ;was255,255,255 after
> my edit so I could find and unchange the revison easily.
>
> Harv
Replace the semicolon with a # symbol. That is the symbol used in
Python to comment out stuff. If, for example, there is a command in a
script that you don't want to delete in case you need it in future, but
don't want recognized, at the very beginning of each line of the command
you can place a #, or 2 or 3 of them, When you wish to replace the
command just delete those symbols. But make sure not to delete the
white space, because that's vital for Python.
Another hint while you're editing your script. If it is your intention
to stick with the black border, and if in most cases you'll want to keep
the border width that you entered in the prompt when the script started,
you may not need to have the Vector Properties dialogue open at the end
of the script run. You can stop that from opening by goint to the
ExecutionMode line near the bottom of the Vector Properties command and
changing the word Interactive to Silent. You can always invoke the
Vector Properties later by double clicking the sublayer to change border
color or size.
To answer your question from another post, the sub-layer is what you see
when you click the plus sign beside the vector layer. You select the
sub-layer by clicking on it, and you can tell it is selected because the
text in in becomes bolded (the blue selection color remains on the main
vector layer).
The units used for width are pixels. A computer monitor doesn't see an
image as inches - that's just for printing. Images on a computer
monitor are so many pixels by so many pixels.
Regards,
JoeB
|
| Post Reply
|
| Re: Script to draw a rectangle |
 |
Sat, 23 Feb 2008 17:08:52 -060 |
"color's free" <aitches_2@yahoo.com> wrote in message
news:47c0a1fc_2@cnews...
>
> "JoeB" <mymail@myserver.com> wrote in message
> news:Xns9A4D9F976F94BJoeB@207.107.16.194...
>> "SuzShook" <suzshook@roadrunner.com> wrote in
news:47c09dbf_3@cnews:
>>
>>> Another way to edit the line width is to make the
"Rectangle" sublayer
>>> the active layer and choose Objects...Properties.
>>>
>>
>> Actually, it's even easier to just double-click the Rectangle
sublayer,
>> which will bring up the Vector Property dialogue.
>>
>> But you forgot to post the modified script for him :-)
>>
>> Regards,
>>
>> JoeB
>
> Ok, I'm looking forward to the revision. You booth mentioned sublayer. Is
> the whole border layer considered a sublayer or is there a layer hiding
> somewhere that I haven't found?
>
> Also, what do the numbers used for the width use for units? Are they
> pixels? Can the dialog ask for inches?
>
> Harv
>
OK, I changed the color from 255,255,255 to 0,0,0, and now I get a black
line. Noticed one thing, unlike G code (machine programming language) you
can't use a semi-color and then type a remark. The program halts at the
semi-colon. I tried to add ;was255,255,255 after my edit so I could find and
unchange the revison easily.
Harv
|
| Post Reply
|
| Re: Script to draw a rectangle |
 |
Sat, 23 Feb 2008 17:15:22 -070 |
"SuzShook" <suzshook@roadrunner.com> wrote in
news:47c0b23e$1_1@cnews:
> Just a note, JoeB - that step is intentionally placed in the script
> with ExecutionMode set to Interactive, as Harv asked for "an
> interactive option to change the line thickness after it has been
> drawn" - see his original post. Suz
Actually, Suz, he said "...after the script has run", not after the
line
had been drawn, which is why I thought he might want the ability to do it
at perhaps a later time, perhaps after the script had completed, maybe
after more post-processing on the background layer, or even later after re-
opening an image saved in psp format. But of course it's no big deal, as
you only have to hit the OK button to close the dialogue :-)
Regards,
|
| Post Reply
|
| Re: Script to draw a rectangle |
 |
Sat, 23 Feb 2008 18:00:19 -060 |
"JoeB" <mymail@myserver.com> wrote in message
news:Xns9A4DA929BA524JoeB@207.107.16.194...
> "color's free" <aitches_2@yahoo.com> wrote in
news:47c0a743$1_3@cnews:
>
>>
>> "color's free" <aitches_2@yahoo.com> wrote in message
>> news:47c0a1fc_2@cnews...
>>>
>>> "JoeB" <mymail@myserver.com> wrote in message
>>> news:Xns9A4D9F976F94BJoeB@207.107.16.194...
>>>> "SuzShook" <suzshook@roadrunner.com> wrote in
news:47c09dbf_3@cnews:
>>>>
>>
>> OK, I changed the color from 255,255,255 to 0,0,0, and now I get a
>> black line. Noticed one thing, unlike G code (machine programming
>> language) you can't use a semi-color and then type a remark. The
>> program halts at the semi-colon. I tried to add ;was255,255,255 after
>> my edit so I could find and unchange the revison easily.
>>
>> Harv
>
>
> To answer your question from another post, the sub-layer is what you see
> when you click the plus sign beside the vector layer. You select the
> sub-layer by clicking on it, and you can tell it is selected because the
> text in in becomes bolded (the blue selection color remains on the main
> vector layer).
I eventually saw the [+]. It's about time to get a new glasses.
>
> The units used for width are pixels. A computer monitor doesn't see an
> image as inches - that's just for printing. Images on a computer
> monitor are so many pixels by so many pixels.
>
> Regards,
>
> JoeB
>
I know about monitors and pixels thanks to your excellent tutorial, and I
haven't forgotten what you said. Although I put borders on usenet posts,
it's really a finish for my prints. The image>add border command has an
option for inches but at 300ppi, .7 pixels equals .02" which is my normal
border thickness.
Again, thanks for the help.
Harv
|
| Post Reply
|
| Re: Script to draw a rectangle |
 |
Sat, 23 Feb 2008 18:28:37 -050 |
color's free wrote:
> "color's free" <aitches_2@yahoo.com> wrote in message
> news:47c0a1fc_2@cnews...
>>
>> "JoeB" <mymail@myserver.com> wrote in message
>> news:Xns9A4D9F976F94BJoeB@207.107.16.194...
>>> "SuzShook" <suzshook@roadrunner.com> wrote in
news:47c09dbf_3@cnews:
>>>
>>>> Another way to edit the line width is to make the
"Rectangle"
>>>> sublayer the active layer and choose Objects...Properties.
>>>>
>>>
>>> Actually, it's even easier to just double-click the Rectangle
>>> sublayer, which will bring up the Vector Property dialogue.
>>>
>>> But you forgot to post the modified script for him :-)
>>>
>>> Regards,
>>>
>>> JoeB
>>
>> Ok, I'm looking forward to the revision. You booth mentioned
>> sublayer. Is the whole border layer considered a sublayer or is
>> there a layer hiding somewhere that I haven't found?
>>
>> Also, what do the numbers used for the width use for units? Are they
>> pixels? Can the dialog ask for inches?
>>
>> Harv
>>
>
> OK, I changed the color from 255,255,255 to 0,0,0, and now I get a
> black line. Noticed one thing, unlike G code (machine programming
> language) you can't use a semi-color and then type a remark. The
> program halts at the semi-colon. I tried to add ;was255,255,255 after
> my edit so I could find and unchange the revison easily.
>
> Harv
Use a # for comments, Harv. And here's the modified script!
|
| Post Reply
|
 |
|
|