Martin, Answers inline below: On Mar 27, 2013, at 7:34 AM, Martin Baker <martin@digital-heaven.co.uk> wrote:
I have a popup menu parameter which currently has the following options SS MM:SS HH:MM:SS
and I want to add 2 new menus so it is like this: SS M:SS MM:SS H:MM:SS HH:MM:SS
Q1: I'm fairly positive that Motion/FCP just stores the selected index of the popup, so a user opening a v1 project with the v2 plug-in would have their HH:MM:SS choice now showing up as MM:SS?
Correct. We can't really store the words in the menu items because you might want to localize them.
Q2: So looking at the versioningAPI, I can check for versionAtCreation == 1, but then what? I could internally remap old index 1 to new 3, and old index 2 to new 4 but the parameter value should really be updated programmatically so the UI shows the correct choice. So that's doable, but then for the future how do I tell Motion/FCP that this has been updated since versionAtCreation is read only?
What we usually do is during -addParameters, if versionAtCreation == oldVersion, show and use the old controls, and hide the new controls. If versionAtCreation == newVersion, hide the old controls and show the new controls. This means projects made with the old version always render the old way and have the old options. It's a little confusing if a user has both an old and a new instance of the plug-in in the same project, but we find that rarely happens. (Or they don't notice it, or they do but never file any bugs on it. :-) )
Q3: Is it necessary to remake the Motion Template when adding menus to a popup, or is that parameter just published by ID, so will update in FCP automatically?
I will have to look into that. Darrin _______________________________________________ Do not post admin requests to the list. They will be ignored. Pro-apps-dev mailing list (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Darrin Cardani