how to get the active cue in/out-fade value from the selected sequence as a variable?

BECOME PART OF THE COMMUNITY - Sign up here
  • trying to write a plugin to apply the global cue fade value to the preset specific timings in the same cue.

    if this is not possible to get the value of the selected cue then what is the way to do the same with a specific cue??
    maybe i didn't phrase it correctly.. all i need is a way to get that value in to the lua code so i can use it later as a variable in a cmd i already wrote...

    i am very much a beginner, so maybe there is something i'm missing, so if anyone can provide insight on the subject i'll be very grateful.

    Edited 3 times, last by stakhanov: clarification (September 9, 2023 at 12:38 PM).

  • stakhanov September 9, 2023 at 12:37 PM

    Changed the title of the thread from “how to store the selected cue in/out-fade value as a variable?” to “how to get the active cue in/out-fade value from the selected sequence as a variable?”.
  • You need to get the Selected Sequence, then the active Cue,
    then the first Part of the cue, and then the cueInFade property.

    The property is a number which represents linearly 1 second with the value 16777216. (2^24)

    local cueInFadeSec = SelectedSequence():CurrentChild():Children()[1].cueInFade / 16777216

    Edited once, last by hepi (September 11, 2023 at 4:43 PM).

  • To get these values in seconds (but as strings) you can use this code:

    Code
    local infade = SelectedSequence().currentcue[1]:Get('cueinfade',Enums.Roles.Display)
    local outfade = SelectedSequence().currentcue[1]:Get('cueoutfade',Enums.Roles.Display)
  • You need to get the Selected Sequence, then the active Cue,
    then the first Part of the cue, and then the cueInFade property.

    The property is a number which represents linearly 1 second with the value 16777216. (2^24)

    local cueInFadeSec = SelectedSequence():CurrentChild():Children()[1].cueInFade / 16777216

    thank you!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!