Posts by tibo.spiessens

BECOME PART OF THE COMMUNITY - Sign up here

    The currently selected timecode is available with the following:

    Code
    CurrentProfile().TemporaryWindowSettings.TimecodeWindowSettings.currentTimecode


    If you dump this you can find all of its attributes, but you most likely just want its index.

    Hi there,

    Thanks a lot for your response, but this is not quite what i'm looking for.


    This code returns the latest temporary timecode view that was opened (like when you do 'edit timecode 1').

    It is not linked to the selected timecode pool item, it is linked to the last opened temp. timecode window.


    Or do you have another approach to get it working correctly? 😁

    Hi Guys,

    I'm trying to get the current cue number of the selected sequence.
    Something like $SELECTEDEXECCUE in GMA2.


    I figured it out using following LUA script:

    Code
    local function main()
    
        local selectedSeq = SelectedSequence()
        local cue = selectedSeq:CurrentChild()
        local currentcue = cue.index
        
        SetVar(UserVars(),"selectedexeccue", currentcue)
        
    end
    return main

    It does returns the number of the current cue, but this doesn't work with cue numbers like 1.2 - 4.5 - 8.9 - ...

    In this example it returns cue numbers like 1 - 4 - 8 - ....

    How can I make this work, and also returns cue numbers after comma?


    Kind regards,

    Tibo