Re: Forcing a render in response to custom parameter push buttons
Re: Forcing a render in response to custom parameter push buttons
- Subject: Re: Forcing a render in response to custom parameter push buttons
- From: Darrin Cardani <email@hidden>
- Date: Thu, 27 Sep 2007 10:17:47 -0700
On Sep 27, 2007, at 8:11 AM, Steve Christensen wrote:
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 <email@hidden> 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.)
Thanks,
Darrin
--
Darrin Cardani
email@hidden
_______________________________________________
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