| SuzShook 2006-08-02, 12:09 pm |
| Hi, Carl. There are two documents you need to obtain from the Corel site -
the Scripting API and Scripting for Script Authors. For PSP 9, you can find
those docs here:
http://www.jasc.com/support/custome...9components.asp
As for how to use the Material Palette in a script, check out the 'Code
"Snippets" - Material Picker' script on my Scripts page here:
http://users.adelphia.net/~suzshook/8scripts.htm
There's also a link to a very helpful table on that page, Carl - the
Scripting Values Table - where I've listed many values often needed in
scripts, and how to get them.
Finally, if you get a Syntax error in a script, it might be helpful, if you
can't resolve the error, to list the exact message from the Script Output
palette, and perhaps include the script as well. Same thing for an
indentation error, though those are usually a matter of being off by one
column. There are always people to help here, but we need more information
to assist you. Suz
--
Suz Shook
C-Tech Volunteer
fll_carl wrote:
> Hello Group,
>
> I'm a newbie when it comes to PSP scripting and I sure could use some
> help.
>
> I'm having one helluva time with PSP(9) scripting. I know how to
> record a simple script and can do some minor changes, but the problem
> arises when I attempt to do something more complicated ... like bring
> up the Material Pallett to select a color, gradient or pattern and
> then use that color in the fill "section".
>
> I'm attaching a little script I've been working on for two days now.
> It creates a simple 4-border cutout frame around a graphic. What I'd
> like to happen is after or before I select the border, I'd like to
> bring up the Material Palette, select the color and then apply it to
> the fill. And, possibly add some "text" along the way to let the
> user know what is happening and what they should do next(especially
> when using plugins). I've followed some of Suz Shook's examples only
> to get Syntax errors or Indentation errors.
>
> Would you look at the attached scrpt and tell me what has to be done
> or where I'm going astray?
> Also, is there anywhere I can obtain info on what commands are
> availablae in PSP and the indent protocol. There must be some "book"
> availale to assist in some of the basics.
>
> Carl
|