• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Custom path animation for CAShapeLayer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom path animation for CAShapeLayer


  • Subject: Re: Custom path animation for CAShapeLayer
  • From: David Duncan <email@hidden>
  • Date: Mon, 10 Jan 2011 15:24:03 -0800

On Jan 7, 2011, at 4:07 PM, Kenneth Baxter wrote:

> Hi, I'm trying to use a CAShapeLayer for some paths in my application. For the most part this works fine, but in some circumstances the animation from one path to another looks really strange during the animation.

Core Animation's path animation requires the source and destination paths to be of the same structure – that is you can animate between two lines, or two beziers but not from a line to a bezier (as such – you can generate degenerate bezier curves that look like lines to emulate this).

If your source & destination paths do not meet this requirement, you may get unexpected results.

> I would be able to tell it what the path should be at any intermediate point in the animation, but I'm not sure how to get access to it to provide those paths.

The closest thing you could do here is use a Keyframe animation, but I'm not certain this could be done cleanly or without using lots of intermediate paths for even short sequences. It is something to explore.
--
David Duncan

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Custom path animation for CAShapeLayer
      • From: Kenneth Baxter <email@hidden>
References: 
 >Custom path animation for CAShapeLayer (From: Kenneth Baxter <email@hidden>)

  • Prev by Date: Re: GCD cancel handler invocation
  • Next by Date: Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable
  • Previous by thread: Custom path animation for CAShapeLayer
  • Next by thread: Re: Custom path animation for CAShapeLayer
  • Index(es):
    • Date
    • Thread