Latest post Fri, Jul 26 2019 3:34 PM by MichaelTancock. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • Wed, Jul 24 2019 8:32 AM

    Obtaining Asset Details in Action Handlers

    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.

  • Thu, Jul 25 2019 6:44 PM In reply to

    • Vadym
    • Top 500 Contributor
    • Joined on Thu, Apr 17 2014
    • Posts 224
    • Points 2,715
    • Avid Developer Moderator
      Avid Employee

    Re: Obtaining Asset Details in Action Handlers

    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

  • Fri, Jul 26 2019 3:34 PM In reply to

    Re: Obtaining Asset Details in Action Handlers

    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

Page 1 of 1 (3 items)

© Copyright 2011 Avid Technology, Inc.  Terms of Use |  Privacy Policy |  Site Map |  Find a Reseller