Posted September 10, 2024 by Horun
Added support for multi-frame editing
"My Tag"math.sin(3)), so be careful not to paste malicious code
i - the index in the selection, starting from 1 (e.g. 1, 2, 3, 4, 5, ...)
f - the selected frame number (i.e. if you start the selection from frame 5 to 8, it will be 5, 6, 7, 8)
c - the count of the selection (the number of selected frames)x - the current value in selected frame
Examples:
4 - set all frames to 4
2 + 2 * 2 - set all frames to 6 (order of operations matter; you can use parenthesis ( ))
i - set frames to [1, 2, 3, 4, ...]
i + 2 - set frames to [3, 4, 5, 6, ...]
c + 1 - i - set frames to [..., 4, 3, 2, 1] (reverse order)
(i - 1) % 3 + 2 - set frames to loop back after 3rd frame (second to last number), starting from 2 (last number) - [2, 3, 4, 2, 3, 4, 2, 3, ...]
math.sin(i) - calculate sinus from the current frame and round it to nearest whole number
"Idle" - set frames to match frames used in tag "Idle" in the prefab