Forcing redraw on custom param pushbutton in FCP FxPlug plug-in whenever the frame is changed
Forcing redraw on custom param pushbutton in FCP FxPlug plug-in whenever the frame is changed
- Subject: Forcing redraw on custom param pushbutton in FCP FxPlug plug-in whenever the frame is changed
- From: Benjamin Kent <email@hidden>
- Date: Mon, 12 Nov 2007 16:46:19 +0000
Hi,
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?
Thanks
Ben
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden