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 14:34:03 +0100
Hi Paul,
On Wed, May 31, 2017 at 1:56 PM, Paul Miller <email@hidden> wrote:
> On 5/31/2017 7:23 AM, Daniel Walz wrote:
>>
>> Friendly bump:
>>
>> does anyone use "FxParameterSettingAPI_v4 setStringParameterValue:
>> toParm:" successfully?
>>
>> N.B. I tried both, kFxParameterFlag_NOT_ANIMATABLE and
>> kFxParameterFlag_DEFAULT, but no luck.
>
>
> When are you calling the function to set the value? IIRC, you can only call
> that in response to a parameter changed event, so you have to set the
> default value properly when you create the parameter.
Thank you. Indeed, it works inside the parameterChanged. I tried to
call it in finishInitialSetup...
But that leaves me that problem:
To find my generator inside the XML I have to add a parameter
containing a UUID (the generator UUID only references the motion
template, but not the actual video on the timeline).
So when I add a clip to the timeline, I want to check, if the
parameter is set to a valid UUID. If not I generate one and set it to
the parameter.
I need to differentiate, if the clip was created manually or restored
from a previous session.
I tried to do this in addParameter as default value, but it is only
called once per session. Further instantiation of the generator does
just a clone from the first created instance.
There also seem to be no callbacks, where I could hook in with that...
Any ideas how to achieve this?
Thanks,
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