Re: Setting string values and getting keyframe values
Re: Setting string values and getting keyframe values
- Subject: Re: Setting string values and getting keyframe values
- From: Daniel Walz <email@hidden>
- Date: Wed, 31 May 2017 13:23:12 +0100
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 <email@hidden> 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden