I'm working on a new set of filters/effects for Image Tricks (and to tell the truth, for any application compatible with Image Units).
A big difference with already existing filters from BeLight Community is that all these new filters are wrapped in one Image Unit (like Noise Industries filters), so this makes updating, downloading, installing […] easier.
All these filters are ready to be released (I have to write short descriptions, yet) but I have a "small" problem with one of them:
- I wrote a "Gradient Overlay" filter that uses Apple built-in CILinearGradient filter.
I've added a way to select one blend mode and another way to adjust gradient intensity:
Unlike the Image Tricks Linear Gradient from Lumine category:
that provides a way to adjust the two points position with mouse cursor (as indicated by a custom icon at the right of its name), I can't find the way to get the same feature for my own Gradient Overlay filter.
Note that the whole filter works perfectly as I can adjust points position with text fields.
An excerpt from Apple Core Image Reference Collection:
Generates a gradient that varies along a linear axis between two defined endpoints.
A CIVector class whose attribute type is CIAttributeTypePosition and whose display name is Point 1.
Default value: [0 0] Identity: (null)
A CIVector class whose attribute type is CIAttributeTypePosition and whose display name is Point 2.
Default value: [200 200] Identity: (null)
A CIColor class whose display name is Color 1.
A CIColor class whose display name is Color 2.
(end of excerpt)
I've defined these two points this way:
Code: Select all
[CIVector vectorWithX:10.0 Y:10.0], kCIAttributeDefault,
[CIVector vectorWithX:800.0 Y:10.0], kCIAttributeDefault,
Note that this works perfectly in other compatible applications (Fun House, Acorn, Pixelmator […]).
Each of these applications provides a way to adjust points position with mouse cursor.
Here's a screenshot from Pixelmator:
(this is not easy to see, but at the top right corner of the panel, you can see the two starting points of the "ropes" that you can move with mouse)
So, where does this problem come?
Is it because this is a custom (external) filter?
I've noticed that one filter from Noise Industries (NI Perspective Tile) has the same problem:
- no way to adjust points position using mouse from IT
- works perfectly from Acorn/Pixelmator