site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=filmstro-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=Suoe4zcXN1VaUz6d25/8HRkzFIxIOf4V6oWSjx5ykfY=; b=F5KPcrpm7/94VyUEG7cmJYKetJqmkWFXxRDo6hLMziWpbvbWUuDNVGtpFNdWn2C6oR EQ89YV02z/14kwM0ZqpwV66lVYd5JRY1Owjni9ZSYkFd383niog+Z0yYQZ70XpEbVv7W eOWAmYlqdvNTb8qI6ADA26mBpJAV+WxTTVBPguRPFF6fDeff0JRhnBGqGeu+5E9FSGR2 RZp1G0BE8iUZnTCaJIhq6pNflvVIGxfadK+/rI2IF7QBGWz0OuLTgX0V73TzAhDg2rvq tfJAmoQn0SBSca/DIQP7shppN9+UCdEgYQhMz8yepjy0WKE1zD087XPO5yQTm2zBAHgu so4g== Friendly bump: does anyone use "FxParameterSettingAPI_v4 setStringParameterValue: toParm:" successfully? N.B. I tried both, kFxParameterFlag_NOT_ANIMATABLE and kFxParameterFlag_DEFAULT, but no luck. Cheers, Daniel On Fri, May 26, 2017 at 6:01 PM, Daniel Walz <daniel@filmstro.com> wrote:
Hi everybody,
in my project I have a string parameter I want to populate programmatically, so I call FxParameterSettingAPI_v4 setStringParameterValue: toParm: However, this method returns NO. What could be the reason for that?
I grep-ped the Examples, but the setStringParameterValue is never used...
Here is how I create the parameter:
parmsApi = [_apiManager apiForProtocol:@protocol(FxParameterCreationAPI_v4)]; [parmsApi addStringParameterWithName:@"Track UID" parmId:kTrackUID defaultValue:@"" parmFlags:kFxParameterFlag_NOT_ANIMATABLE];
...and set it later:
parmsSetApi = [_apiManager apiForProtocol:@protocol(FxParameterSettingAPI_v4)]; [parmsSetApi setStringParameterValue:[themeLibrary getThemeUuid] toParm:kTrackUID]
where this is my method: -(NSString*) getThemeUuid;
==== A second issue I have is retrieving the keyframes value. I can only see the tangents in FxKeyframeInfo, hence I tried to retrieve the value like this:
double value; FxKeyframeInfo info; FxInitKeyframeInfo (info);
[keyframeApi keyframeInfo: &info forParam: paramIdx channel: 0 andIndex: i]; [parmsApi getFloatValue: &value fromParm: paramIdx atTime: info.time.frame];
But I end up with incorrect values (i.e. from the wrong time). How should this be done?
Again, the KeyframeAPI is not used in any example I found out via grep.
Thanks for any hint,
Daniel
-- Daniel Walz | Software Developer
Filmstro | Music that Moves.
www.filmstro.com | twitter/filmstro | vimeo/filmstro
-- Daniel Walz | Software Developer Filmstro | Music that Moves. www.filmstro.com | twitter/filmstro | vimeo/filmstro _______________________________________________ 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: https://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com