PyonFX
PyonFX copied to clipboard
Add AutoTags
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)
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.
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