Re: FxPlug versioning
Re: FxPlug versioning
- Subject: Re: FxPlug versioning
- From: Martin Baker <email@hidden>
- Date: Fri, 29 Mar 2013 13:03:53 +0000
Hi Christoph
Yes I understand. New parameters will get set to default values when loaded by instances that use an older version. There's no way to tell an instance was created by an earlier version of the plug-in by adding a new parameter. So without versionAtCreation returning the expected value, it goes around in circles.
Martin
www.digital-heaven.co.uk
www.twitter.com/digitalheaven
www.videospaceonline.com
www.finalcutters.com
------------------------------------------------------
Digital Heaven Ltd is registered in England and Wales
Company registration number: 3628396
Registered address: 55 Lynwood Drive, Worcester Park, Surrey KT4 7AE
VAT registration number: GB 736 0989 03
On 28 Mar 2013, at 18:02, Christoph Vonrhein wrote:
> Martin,
>
> Let me see if I get this right:
>
> The task: Your plugin needs to determine if your project was created with V1 of the plugin or with V2. Depending on that you want to display two different looking popup menus.
>
> Let's say your V1 plugin only has on parameter, which is the popup menu with 3 items. Your V2 plugin needs to display 5 items. Now you add to the V2 plugin a BOOL which is set to YES, thinking that you only get a YES from the BOOL when you open a project where the V2 plugin was used.
>
> What happens:
>
> Your V1 project opens with the installed V2 plugin. The -addParameters method now adds the BOOL and the popup menu. The project does not have a BOOL parameter, because the old V1 plugin only added the popup menu with the 3 items. And so the BOOL will be added with the default parameter of YES. Your -renderOutput method will therefore always see a YES when its gets the BOOL value.
>
> If your V1 project would have also had a BOOL which is set to NO as a default, then you can determine in the -renderOutput method if the plugin was created with the V1 plugin (BOOL is set to NO) or the V2 plugin (BOOL is set to YES).
>
> If you would have used a hidden INT, then you can do even more, because then you will be able to determine if the V1, V2 or V35 plugin was used when the project was created.
>
> Christoph
_______________________________________________
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