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: Mon, 24 Sep 2007 08:37:19 -0700
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.
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.
Darrin
|
_______________________________________________
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