site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com Organization: RE:Vision Effects User-agent: Thunderbird 2.0.0.21 (Windows/20090302) On Apr 24, 2009, at 1:26 PM, Pierre Jasmin wrote: get BeforeOrEqual KF value get AfterOrEqual KF value Sorry, this should return &time and &index as well, so you if you need the KF location of 2 values, you can then ask (if it exists) index-1 or index+1 or nothing based on that returned value This is just a contraction of: 1) Am I on a KF? A) If not Nearest KF before (or after) B) If so what is my KF index? Example application: Right now in absence of animated menus with step/constant animation, the value of an integer slider tells us nothing as if one goes from state 3 to 6, we are not interested in getting 4 and 5 as in-betweens... so the only reliable thing is the values located at KF times... get NumKeys and allow index first to last remove KF at time clear KF stream (can be just a loop done by us) set KF Value at time copy KF (can also be getValueAtTime and setValueAtTime) same as when you set a value right now which creates a new keyframe for end points of an interval FYI and FWIW: This is what we did for OFX: /** @brief Copies one parameter to another, including any animation etc... \arg paramTo parameter to set \arg paramFrom parameter to copy from \arg dstOffset temporal offset to apply to keys when writing to the paramTo \arg frameRange if paramFrom has animation, and frameRange is not null, only this range of keys will be copied This copies the value of \e paramFrom to \e paramTo, including any animation it may have. All the previous values in \e paramTo will be lost. To choose all animation in \e paramFrom set \e frameRange to [0, 0] This function can be called the ::kOfxActionInstanceChanged action and during image effect analysis render passes. \pre - Both parameters must be of the same type. \return - ::kOfxStatOK - all was OK - ::kOfxStatErrBadHandle - if the parameter handle was invalid */ OfxStatus (*paramCopy)(OfxParamHandle paramTo, OfxParamHandle paramFrom, OfxTime dstOffset, OfxRangeD *frameRange); if Curve Type (eg step/constant, linear, bezier...) - set Curve Type assuming a KeyFrame Editor Graph: - Add Group, and Add Param only in Timeline view In FCP case user level cut and paste of parameter streams between anywhere to effects param would be a start Thanks! Darrin -- Darrin Cardani dcardani@apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Pro-apps-dev mailing list (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.ap... Darrin Cardani wrote: So if you pass in a time value, these would give you the closest previous or next keyframe? Is this so you can do your own type of interpolation? Just curious - it doesn't sound too difficult to implement. So, you mean copy a keyframe from one time to another? or another param, if same param it's OK to put same param as From and To In the case of bezier keyframes, what would happen to the tangents in this scenario? I could see some odd results coming from this if they aren't handled right. I don't think I understand what you mean here. Can you elaborate on what this would involve? Right now in Motion, users have the ability to see only certain parameters in the Timeline Keyframe editor, or to see all of them. You are right... you can see that it's Pete that supports Motion here :) In FCP, each parameter has a keyframe editor next to it in the viewer window. I'm not sure I understand what you mean by "only in Timeline view" or what groups have to do with it. This email sent to site_archiver@lists.apple.com
participants (1)
-
Pierre Jasmin