Graphics

 View Only
  • 1.  Changing default macro

    Posted 06-27-2014 23:24
    Hello All, I would like to be able to change the default User Macros. Such As on a ross keyboard, User 1 clears channel 1. I would like to be able to change this to dissolve-out all the layers that are on channel 1. Right now we place several elements on different layers on channel 1. I would like to be able to dissolve all the layers away with a single keystroke. I'm assuming this would be a script function. Does anyone know the correct scripting for this?

    Thanks

    S.


  • 2.  RE: Changing default macro

    Posted 06-28-2014 13:40
    Hi Steve,

    You can use a script like this on a Script Action that you assign to a keyboard button in the Keyboard Mapping menu:



    dim outfb as xpOutputFramebuffer

    dim channel as integer

    dim layer as integer

    dim takeitem as xpBaseTakeItem

    channel = 0 ' 0 is channel 1, 1 is channel 2, etc..

    engine.GetOutputFramebuffer(channel, outfb)

    for layer = -10 to 10

    if outfb.GetTakeItemOnLayer(layer, takeitem) then

    takeitem.SetOffline

    end if

    next



    This script loops over layers -10 to +10 and takes any sequence items that are on-air on those layers offline. It will use whatever Out Transition is configured in the sequence item for each.

    #XPression


  • 3.  RE: Changing default macro

    Posted 06-28-2014 21:25
    Hi Brian,

    Thanks so much. That worked perfectly! Sorry my post had errors in it about what macros I was actually referring to.

    Thanks again.

    S.

    #XPression