Last active
September 6, 2021 07:14
-
-
Save pcroland/4fcf5d62caada94ab5e0caebea6d4b21 to your computer and use it in GitHub Desktop.
Modified lwlinfo for showing only the important parts with white and you can add a bonustext (group name for example) with predefined colors.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
red = $FF7C7C | |
green = $B2FF7C | |
blue = $8F97FF | |
yellow = $FFE07C | |
orange = $FFB97C | |
magenta = $FF77FF | |
violet = $C787FF | |
cyan = $7DF9FF | |
white = $FFFFFF | |
azure = $86C8FF | |
Function mylwlinfo(clip c, string "bonus_text", int "bonus_text_color") | |
{ | |
bonus_text = default(bonus_text, "") | |
bonus_text_color = default(bonus_text_color, $FFE07C) | |
Width(c) < 1024 ? Eval(""" | |
text_size = 16 | |
bonus_text_size = 25 | |
bonus_text_pos = 54 | |
""") : Eval(""" | |
text_size = 18 | |
bonus_text_size = 28 | |
bonus_text_pos = 60 | |
""") | |
ScriptClip(c, """Subtitle("Frame Number: " + String(current_frame) + " of " + String(FrameCount()) + "\n" + | |
\ "Picture Type: " + String(propGetString("_PictType")) + "\n" + | |
\ "CFR Time: " + FFFormatTime(Round((current_frame * 1000) / FrameRate())) + "\n", y=5, size=text_size, text_color=$FFFFFF, halo_color=$000000, lsp=1) | |
return Subtitle(bonus_text, y=bonus_text_pos, size=bonus_text_size, text_color=bonus_text_color)""", after_frame=true, args="text_size, bonus_text_size, bonus_text_pos, bonus_text, bonus_text_color") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment