Re: Setting string values and getting keyframe values
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 :content-transfer-encoding; bh=uIG40TuLIn9iVxlpMk1Lfo1s4LVj2ba0iGSlivp1oBk=; b=hVJJKQCnAu4PUiJ5STO2eb8cU94cLNrB257B3fDoWOJhHRCCI6PqlVM3uiJlpPagTN 3P3gkTl86ploLv8wsR68/gZKwf/wCkzZc/jtIpaJPHQ8RbTEN1Jg5Tr42SUmuke0OpS0 UHOU6njI4gD+mQqYo1BL43UOQywzUOQ4X7OEaRxLBhYz5CAvz3bPs/LVhIZWK4+ALyHo c7NQzc8t+h8Ls/E7VcBluhP8P1TPd5iqWzW4FuBznKU7ec4BH5IpUTIENqx9Sv0ifBWa GLO+fDgkSDYlfL8uTP6LRiqW5cC1+kUEFAD8+oKZvJw9LA66LMowFcbetpMjWbfW/T5E EAFQ== Hi Darrin On Wed, May 31, 2017 at 6:01 PM, Darrin Cardani <dcardani@apple.com> wrote:
I have seen other developers use techniques like the following:
At some point when you aren’t allowed to set parameters, issue a call to: [-myPlugin performSelectorOnMainThread:@selector(setSpecialParams:) withObject:whateverObjectYouNeed waitUntilDone:NO]; Then in -setSpecialParams:, you can use the FxCustomParameterActionAPI to start an action, then set parameters as you like, then call endAction:.
What this does is performs whatever selector you choose on the main UI thread. The calls to startAction/endAction ensure that the app does the right housekeeping for you to start changing parameter values.
Let me know if that works for you.
Darrin
That looks good, I will give that a go. And for regular checks for synchronising I think I could use NSTimer, which also happens on the GUI thread, together with your hint using beginAction and endAction I should be good to go. Thanks, I will get back if I run in trouble... 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 (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
participants (1)
-
Daniel Walz