parameter getting/setting problems with FxPlug on FCP
parameter getting/setting problems with FxPlug on FCP
- Subject: parameter getting/setting problems with FxPlug on FCP
- From: Benjamin Kent <email@hidden>
- Date: Thu, 04 Oct 2007 16:31:23 +0100
Hi,
I'm having some problems getting and setting parameters on FCP.
Basically, I'm trying to get and set keyframes on some parameters in a
callback function in response to a custom widget pushbutton I've created.
The first problem is that it seems like I can only get the correct value
for a parameter if I ask for its value at the current frame. Is this the
expected behaviour outside of the renderOutput function?
The second problem is more general I think. It appears that setting
keyframes only works if the user has already clicked the keyframe button
for the parameter in the ui, otherwise it just changes the value of the
parameter over the entire time range. This is especially a problem when
trying to set keyframes on hidden parameters, as the user can't even
click the keyframe button. Is there a way to do this automatically? This
behaviour seems to manifest itself by adding the following code to the
beginning of renderOutput in the ScrollingRichText example:
id settingAPI = [_apiManager apiForProtocol:@protocol
(FxParameterSettingAPI)];
[settingAPI setIntValue: renderInfo.frame
toParm: kParamID_Size
atTime: renderInfo.frame];
return YES;
Another slight problem is as follows, though I'd imagine this is an FCP
specific bug. If you add this code to the plugin, click the keyframe
button on the size parameter in the ui, then go to frame 20 it will set
a keyframe as expected. Then jump to frame 50 on the timeline - again it
will set a keyframe as expected. But now if you go to frames in between,
it seems sporadic as to whether it actually sets the keyframe.
Cheers
Ben
--
Ben Kent, Senior Software Engineer
The Foundry, 1 Wardour Street, London, W1D 6PA, UK
Tel: +44 (0)20 7434 0449 • Fax: +44 (0)20 7434 1550 • Web:
www.thefoundry.co.uk
The Foundry Visionmongers Ltd • Registered in England and Wales No: 4642027
_______________________________________________
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