This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > PainShop Pro Scripting > April 2006 > Pattern Fill Question
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 |
Pattern Fill Question
|
|
|
| Hello,
I'm creating a script in PSP 9.01 to create a tiling image. The script
includes opening a new larger canvas and testing the newly created image to
see how it looks tiled.
Is there is a command that tells the script to automatically load the last
"active" image as the material in the script, which would be the tiling
image created by the script, into the foreground to use as the pattern fill?
I want to be able to have other images open in the workspace but use the
newest image only in the script where you specify the material. I wouln't
even mind having an iteractive dialog box appear automatically as part of
the script so that I can chose. Currently, it just skips the "Interactive"
command in Execution mode and uses the last pattern that was set.
# Fill
App.Do( Environment, 'Fill', {
'BlendMode': App.Constants.BlendMode.Normal,
'MatchMode': App.Constants.MatchMode.None,
'Material': None,
'UseForeground': True,
'Opacity': 100,
'Point': (348.5,380.5),
'SampleMerged': False,
'Tolerance': 20,
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Interactive,
'AutoActionMode': App.Constants.AutoActionMode.Match,
'Version': ((9,0,1),1)
}
})
--
Angie : )
http://www.utionline.net/~ut03897
| |
| SuzShook 2006-04-10, 7:22 pm |
| Hi, Angie. You need to add a GetMaterial command in there to open the
Materials dialog so the user can choose the pattern image s/he wants:
# Get Material
Material1 = App.Do(Environment,'GetMaterial',{
'IsPrimary':App.Constants.Boolean.true,
'GeneralSettings': {
'ExecutionMode':App.Constants.ExecutionMode.Interactive
}
})
Insert this command before the Fill command, and once the user chooses the
pattern, the fill will use it as below. Suz
--
Suz Shook
C-Tech Volunteer
Angie wrote:
> Hello,
>
> I'm creating a script in PSP 9.01 to create a tiling image. The script
> includes opening a new larger canvas and testing the newly created
> image to see how it looks tiled.
> Is there is a command that tells the script to automatically load
> the last "active" image as the material in the script, which would be
> the tiling image created by the script, into the foreground to use as
> the pattern fill? I want to be able to have other images open in the
> workspace but use the newest image only in the script where you
> specify the material. I wouln't even mind having an iteractive dialog
> box appear automatically as part of the script so that I can chose.
> Currently, it just skips the "Interactive" command in Execution mode
> and uses the last pattern that was set.
> # Fill
> App.Do( Environment, 'Fill', {
> 'BlendMode': App.Constants.BlendMode.Normal,
> 'MatchMode': App.Constants.MatchMode.None,
> 'Material': None,
> 'UseForeground': True,
> 'Opacity': 100,
> 'Point': (348.5,380.5),
> 'SampleMerged': False,
> 'Tolerance': 20,
> 'GeneralSettings': {
> 'ExecutionMode':
> App.Constants.ExecutionMode.Interactive,
> 'AutoActionMode': App.Constants.AutoActionMode.Match,
> 'Version': ((9,0,1),1) }
> })
| |
|
| Thanks much, Suz. Somehow I knew that you would have the answer that I was
looking for.
--
Angie : )
http://www.utionline.net/~ut03897
"SuzShook" <suzshook@adelphia.net> wrote in message
news:443a92b5$1_3@cnews...
> Hi, Angie. You need to add a GetMaterial command in there to open the
> Materials dialog so the user can choose the pattern image s/he wants:
>
> # Get Material
> Material1 = App.Do(Environment,'GetMaterial',{
> 'IsPrimary':App.Constants.Boolean.true,
> 'GeneralSettings': {
> 'ExecutionMode':App.Constants.ExecutionMode.Interactive
> }
> })
>
> Insert this command before the Fill command, and once the user chooses the
> pattern, the fill will use it as below. Suz
> --
> Suz Shook
> C-Tech Volunteer
>
>
> Angie wrote:
>
>
| |
| Spandex Rutabaga 2006-04-10, 7:22 pm |
| Angie wrote:
>
> Hello,
>
> I'm creating a script in PSP 9.01 to create a tiling image. The script
> includes opening a new larger canvas and testing the newly created image to
> see how it looks tiled.
This isn't an answer to your question but it might be something you
want to be aware of. In order to preview tiling you don't need to
create a canvas and then fill it with a tile image. Instead you can
just do this. Open your tile image and Effects > Image Effects >
Seamless Tiling. Make sure Show Tiling Preview is checked and, in the
extra window that pops open, check Show Original. You can now see how
your tiling will look and you can pan and zoom this preview to see
details. It's rather quick and easy. See attached.
|
|
|
| | Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |
|