I am migrating an earlier MediaCentral application to MCUX. This involves creating actions to allow users to export iNEWS rundowns and stories, and also process Markers data from sequences that may be associated with the story. Particularly in the case of the Markers data I need to enable/disable the action menu item if the asset has an associated sequence or not.
With MediaCentral an object was passed to the action handlers. This could be cast to a an AV.Storyline object which has a field indicating whether the story has a sequence or not. MCUX only appears to pass the ID of the asset to the handler. Is there a function that the plug-in can easily call to retrieve the Storyline object? Given that this has to be done in the action IsEnabled handler I don't really want to have to call a platform service to extract the information.
Hi Mike,
We have a migration guide published here http://developer.avid.com/mcux_ui_plugin/clux-api/actions-migration.html
Unfortunately you'll have to do the call unless underlying system provides the necessary data or methods. Also you could do asynchronous calls which is allowed by ActionsAPI
Hi Vadym,
Thanks. I did some further research to see what the Rundown pane did for things like a "Float Story" call. In their action handlers they call:
const wsController = getWorkspace(selection);
and using wsController.getActiveModel() it is possible to determine whether the story has a sequence or not. Is it possible to find out from the iNEWS team whether this functionality can be leveraged independently?
One other point to bear in mind is that I am only adding actions to existing views not creating any of my own.
Mike
© Copyright 2011 Avid Technology, Inc. Terms of Use | Privacy Policy | Site Map | Find a Reseller