Re: Forcing a render in response to custom parameter push buttons
site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com On Sep 27, 2007, at 8:11 AM, Steve Christensen wrote: Thanks, Darrin -- Darrin Cardani dcardani@apple.com _______________________________________________ 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: http://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.ap... So, I tried playing with parameters to get Motion to re-render but no joy. I have a modal configuration panel that I display in response to clicking on a button. Just curious - what is the advantage of using a modal dialog over, say, a custom control (or set of controls)? It seems like you're trying to force the user into a particular workflow, and that's generally a bad idea. But without more info, it's hard to say. (If you don't want to reveal what you're doing publicly, feel free to send email to <proappsdk@group.apple.com> and only people within Apple will see it.) When the user chooses OK, I stop the modal event loop, then do the following: [paramActionAPI startAction:self]; gRenderWhackerValue = !gRenderWhackerValue; [setParamAPI setCustomParameterValue:[NSNumber numberWithBool:gRenderWhackerValue] toParm:kParameterIDConfigButton]; [setParamAPI setBoolValue:gRenderWhackerValue toParm:kParameterIDHiddenRenderWhacker atTime:[paramActionAPI currentTime]]; [paramActionAPI endAction:self]; I tried having both the custom parameter (the button) and a hidden boolean parameter to try to cover all bases in working around the Motion bug Darrin mentioned. I put a NSLog call in the method that handles my OK button as well as -frameSetup:hardware:, - frameCleanup and -renderOutput:withInfo:. When I click OK, I see that the OK method is called, but nothing after that. Any further pearls of wisdom? What you have above looks correct. Would it be possible to send me a copy of the plugin to see what's going on in Motion when your filter changes a parameter? (You can email it directly to me if you want.) This email sent to site_archiver@lists.apple.com
participants (1)
-
Darrin Cardani