PyonFX icon indicating copy to clipboard operation
PyonFX copied to clipboard

Add AutoTags

Open moi15moi opened this issue 3 years ago • 2 comments

You could add the same fonction that you can see here at the line 99 to 129. https://github.com/ihkk/KKSubs/blob/bb96829813a169a32fa7770ae6cbe6c5dfdd3a51/Lua%20Macros/KK's.lua#L99

So, in brief, function AutoTags(Intervalo,Dato1,Dato2) function AutoTags1(Intervalo,Dato1,Dato2,Pause) function AutoTags2(Intervalo,Dato1,Dato2,Delay) function AutoTags3(Intervalo1,Intervalo2,Dato1,Dato2)

moi15moi avatar Nov 07 '21 13:11 moi15moi

Hi! It could be helpful, but it is still an high-level function that can be emulated using FrameUtility. I will think about adding it, but for now it is certainly not a priority.

CoffeeStraw avatar Nov 24 '21 20:11 CoffeeStraw

def autoTags(duration: int, interval: int, data1: str, data2: str) -> str:
    result = ""
    count = math.ceil(duration/interval)

    for i in range(count):
        if i%2 == 0:
            data = data1
        else:
            data = data2


        result += ("\\t(%d,%d,%s)" % (
                    i*interval,
                    (i+1)*interval,
                    data
                    )
        )

    return result

moi15moi avatar Mar 02 '22 22:03 moi15moi