sketch-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Plug-ins in sk-0.6.15


From: Pieter Edelman
Subject: Re: Plug-ins in sk-0.6.15
Date: Tue, 20 May 2003 10:58:36 +0200 (CEST)

Hi,
There´s a README file in the color add-ons packages, which describe how to
install them. Notice that these are not plugins but scripts.
From the README file:

Both scripts require the adjcolor.py(c) library, which should be included
in this package. To install the scripts, copy the adjcolor.py(c) file and
the adjustbc.py(c) and/or the colorize.py(c) file to a convenient place.
Then add the following lines to your ~/.sketch/userhooks.py file:

> import Sketch.Scripting
> sys.path.append("/path/to/package")

And for the brightness and contrast script:
> from adjustbc import adjust_brightness_contrast

And for the colorize script:
> from colorize import colorize

The functions should appear in the Scripts menu

As mentioned before, it´s not a good idea to put scripts in a plugin
directory, but you could make a directory ~/.sketch/scripts to put them in
for example. The best thing would probably to make an install
script/RPM/DEB/whatever, but I think this is a greater issue which affects
all plugins/scripts. The installation methods for these things are maybe a
bit too liberal, so perhaps it´s a good idea to discuss a standard way to
install add-ons. Perhaps the best would be to have an option in sketch
itself where you can select add-ons you want to install, so that it goes
on to download and install them from the sketch website.

Anyway, I hope that for now it is clear enough,
Pieter Edelman

On Mon, 19 May 2003, Kai-Uwe Behrmann wrote:

> Hi Pieter,
> fine to contact You.
> Your plug-ins would be very usefull for layouting in sketch. So I
> downloaded them and tried to install them in the sketch path. As this was
> not so clear to me, I put it into ~/.sketch because in
> Sketch.config.plugin_path.append(os.path.expanduser("~/.sketch/Plugins"))
> there I obtained following error message:
> Keine Plugin-Typ-Information in /home/kuwe/.sketch/Plugins/colorize.py
> Keine Plugin-Typ-Information in /home/kuwe/.sketch/Plugins/adjcolor.py
> Keine Plugin-Typ-Information in /home/kuwe/.sketch/Plugins/adjustbc.py
>
> Maybe it is in ~/.sketch good placed and allready loaded, how can I find
> the dialog of adjcolor/colorize.
> I usually tell others about such a place like: View->Display Settings->Lab
> . Please can You tell me the location in the menues of You interessting
> tools.
>
> thanks
> Kai-Uwe
>
> Am 19.05.03, 16:29 +0200 schrieb Pieter Edelman:
>
> > Hi. I don´t really understand the problem you are describing, could you
> > please explain it once more?
> >
> > Pieter
> >
> > On Mon, 19 May 2003, Kai-Uwe Behrmann wrote:
> >
> > > Am 19.05.03, 11:58 +0200 schrieb Christof Ecker:
> > >
> > > > > Keine Plugin-Typ-Information in 
> > > > > /home/kuwe/.sketch/Plugins/transform.py
> > > > [...]
> > > > When a certain directory is appended to the sketch Plugin paths (as it 
> > > > is the case here) it should only hold files which are plugins, 
> > > > otherwise you get complains by sketch as above. These files are scipts, 
> > > > not plugins! move them to "~.sketch/". If you don't know which is 
> > > > which, plugin files always start with:
> > > > ###Sketch Config
> > > > #type = PluginCompound
> > >
> > > This works so now - thanks for the hint with the directorys.
> > > The colorize.py layes in .sketch/ and I cannot see the knob althoug not
> > > after 'select image'->"right mouseclick" or similiar. The address of
> > > Pieter Edelman I could not found to ask him directly.
> > >
> > > thanks
> > > Kai-Uwe
> > >
>
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]