Setting string values and getting keyframe values
Setting string values and getting keyframe values
- Subject: Setting string values and getting keyframe values
- From: Daniel Walz <email@hidden>
- Date: Fri, 26 May 2017 18:01:02 +0100
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
_______________________________________________
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