Re: Forcing redraw on custom param pushbutton in FCP FxPlug plug-in whenever the frame is changed
site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com User-agent: Thunderbird 2.0.0.0 (Macintosh/20070326) Hi Darrin, Cheers Ben On Nov 12, 2007, at 8:46 AM, Benjamin Kent wrote: Thanks, Darrin -- Darrin Cardani dcardani@apple.com <mailto: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/ben%40thefoundry.co.uk _______________________________________________ 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... My plug-in requires an animatable bool parameter (representing the validity of a frame at given time). So a user will set a single frame X as invalid, but all other frames should still be valid. This action really requires setting a value of false at frame X and a value of true at X-1 and X+1 all in one go (otherwise when setting a value of false at X, all other frame values would also be set to false). On other hosts this is either done with a pushbutton which sets the three key frames on an animatable bool or an animatable integer parameter, but as it isn't possible for a plug-in to create keyframes on a parameter in FCP, this was a way around it (using an internal data structure to store the key frame information and a pushbutton check box to display the boolean value at a given frame to the user). Darrin Cardani wrote: I have a custom param which is masquerading as an animatable bool toggle - i.e. the param is a toggle push button and it's value is changed when my plug-in is rendered such that it reflects the value of an internal data structure cached in the plug-in. This works fine, except that if the frame is cached, the push button doesn't get updated. For example, the default value of the push button is checked - the user unchecks it and it sets a keyframe of value 0 in the internal data structure. The user goes to the next frame and the push button returns to checked (as the internal data structure value at this frame is still 1). Then, if you go back to the previous frame, the push button stays checked, as the plug-in never renders and sets the value of the push button. Now I realise I don't want to stop the caching, as a user would never be able to render and play a sequence - so is it possible to force the push button to have its drawRect function called whenever the frame is changed - that way I could query the plug-in at this point as to the value of the internal data structure? Ben, My first question would be, "Why do you want to do this?" I don't understand what you're trying to accomplish, but what you've described seems incredibly arcane and user unfriendly. Maybe if you describe in more detail what you're trying to do we can give you a better answer. This email sent to ben@thefoundry.co.uk This email sent to site_archiver@lists.apple.com
participants (1)
-
Benjamin Kent