Latest post Wed, Jul 24 2024 4:06 PM by Tom Ransdell. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • Tue, Jul 23 2024 1:27 PM

    • csouza
    • Not Ranked
    • Joined on Thu, Oct 13 2022
    • Posts 4
    • Points 60

    Multiple modal UIs

    Hi,

    I am able to negotiate the AVXATTR_Effect_ModalUI attribute to open a UI using a ACFCompType_ModalUI component. It creates a button on the effect editor panel with a button in it.

    How can I have multiple different modal UIs in an effect? E.g. having two distinct buttons on the effect editor panel where each button will open a different instance of an ACFCompType_ModalUI component.

    Thanks
  • Wed, Jul 24 2024 4:06 PM In reply to

    Re: Multiple modal UIs

    csouza:
    I am able to negotiate the AVXATTR_Effect_ModalUI attribute to open a UI using a ACFCompType_ModalUI component. It creates a button on the effect editor panel with a button in it.

    This is the only safe way to display a model UI from the Effect Editor.

    If you need more model UIs, then there are many options that have been used by other AVX developers.Here are just a few:

    * Start with a modal dialog that allows some simple additional options, closing and opening to different dialogs as necessary until IAVXModelUI::DoDialog returns.
    * Create a model UI with some sort of tabbed or paging UI.
    * Define a silent menu/list for the Effect Editor to select which model UI to display when editor clicks the "..." button.

     

    FYI, there are AVX plugins that have defined mulple checkboxes to display custom modal UIs from their IAVXUpdateParams::DoUpdate method implementation. This is now supported because it often leads to "undefined behavioir", i.e. crashing, since there is no guarantee Media Composer will be in a safe state to handle foreign event processing.

    --Tom

     

     

    Filed under: , ,
Page 1 of 1 (2 items)

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