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: Garrick Meeker <email@hidden>
- Date: Wed, 27 Aug 2008 15:17:01 -0700
Figured it out. I wasn't using the action API.
On Aug 27, 2008, at 12:31 PM, Garrick Meeker wrote:
Okay, this thread is bit old but I've been trying to support Motion
better and I'm running into the bug with Motion not re-rendering
after changing custom parameter data. However, changing a hidden
boolean doesn't work either. I can't seem to change the value from
the NSButton callback (the view for my custom parameter), which is
confirmed when I don't hide it. Does anyone have this working in
Motion?
On Sep 27, 2007, at 10:17 AM, Darrin Cardani wrote:
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
_______________________________________________
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
_______________________________________________
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