More results:
- Changed ProPlugPluginList version to "2"
- Kept parameterID the same with a single popup menu.
- in addParameters I checked versionAtCreation value. If it equals 1, then added the original 3 menus, else added 5 menus.
- in renderOutput again checked versionAtCreation value and if equal to 1 then remapped original popup int value to new int value. 1>3 and 2>4
- Tried this in FCP with the original v1 Motion Template and got 3 menus for BOTH old and new instances of the generator.
- So then tried remaking the Motion Template which involved starting over again with a new instance of the plugin, so I could see the 5 menus.
- In FCP this resulted in both old and new instances of the generator having 5 menus which meant the old instance showed the wrong option (old index 2 HH:MM:SS now showing as new index 2 - MM:SS). So that's no good.
So then I tried a migration strategy:
- Added a hidden "Upgraded1to2" bool parameter
- addParameters only adds 5 menus with same parameterID as before
- in finishInitialSetup, check for upgraded1to2 as NO and versionAtCreation == 1. If both true then get the popup parameter value and then set it to the new increased value. Then set upgraded1to2 to YES.
- renderOutput then just deals with the new values of the popup.
- tested with the v2 motion template in FCP. But it doesn't work. An NSLog inside the migration code always reports that the versionAtCreation == 2, even for old instances of the generator, so again the wrong menu is chosen.
So to sum up, while I can see that versionAtCreation could work in Motion, I'm struggling to see how it could work in FCP. In all 3 cases above, FCP reports the version of the plug-in used to build the Motion template and not the version of the FxPlug actually installed currently...
Martin Baker
------------------------------------------------------
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
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