CoreAnimation and Filters

2008-05-29 Thread Joachim Deelen
Hi, I'm having trouble with the following code: CIFilter *outFilter = [CIFilter filterWithName:@CIZoomBlur]; [outFilter setDefaults]; outFilter.name = @zoomOutFilter; [outFilter setValue:[NSNumber numberWithFloat:20.0] forKey:@inputAmount]; [newImageLayer

Re: CoreAnimation and Filters

2008-05-29 Thread Dmitri Goutnik
On May 29, 2008, at 11:32 PM, Joachim Deelen wrote: The Animation of the Filter is working fine. The ZoomBlur gets animated from 20.0 to 0.0 in 1.8 seconds. But as soon as the animation has finished, the Value for the filter instantly drops back to 20.0. I've tried different fillModes but

Re: CoreAnimation and Filters

2008-05-29 Thread Joachim Deelen
Hi Dimitri, YES! That's the solution. I always thought, that removing on completion just removes the Animation-Object from the Layer so its memory can be freed by the garbage-collector. That it has an effect on the animated value(s) seems a bit strange to me. But it works! Thank you