Glyph-Filters icon indicating copy to clipboard operation
Glyph-Filters copied to clipboard

Consider automatically doing the offsetting in processLayer

Open simoncozens opened this issue 4 years ago • 0 comments

Lots of filters start:

	params = {
		"S": { "offset": 0, ...

    def processLayer(self, thislayer, params):
        offsetpaths = self.saveOffsetPaths(
            thislayer, params["offset"], params["offset"], removeOverlap=True
        )
        outlinedata2 = setGlyphCoords(doAngularizzle(offsetpaths, 4))

Perhaps if processLayer sees that we have an offset member in the parameters, it should do the offsetting and store the result in instance variables. I'll have to look through and see if that's worthwhile - if there's enough commonality to make it worth abstracting, or if subtle things are different each time.

simoncozens avatar Nov 27 '20 10:11 simoncozens