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: Steve Christensen <email@hidden>
- Date: Tue, 25 Sep 2007 15:13:21 -0700
On Sep 24, 2007, at 8:37 AM, Darrin Cardani wrote: On Sep 24, 2007, at 5:41 AM, Benjamin Kent wrote: I've created a custom parameter push button using the NSButton class. Is there any way to force my plug-in to render in response to a user clicking on the push button? One way would be to add a hidden parameter and change its value in the push button callback, but this seems a little inelegant - is there a way to just signal to the host that it needs to update?
You shouldn't need to add an additional parameter. Just create some data (say a single byte) for the custom parameter, and when the user pushes the button, change the value of the byte just as you would if there was real data there.
My understanding is that the custom parameters take an object as their value. Wouldn't I need to create a new dummy value and pass it to -setCustomParameterValue:toParm:, then? Note that there is a bug in the currently shipping version of Motion which causes the document not to notice when custom parameters have changed. That has been fixed for the next release.
So, to get the correct behavior with existing versions of Motion, would it be better to follow the OP's suggestion of having a hidden parameter that is there just to force a render?
steve
|
_______________________________________________
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