This file contains 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
__author__ = "[email protected]" | |
__created__ = "2022-08-11" | |
from maya import cmds | |
class ProgressBar(object): | |
""" | |
Convenience class for showing a progress bar in Maya |
This file contains 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
__author__ = "[email protected]" | |
__created__ = "2022-09-03" | |
""" | |
This is mostly a recreation of this stack overflow answer: https://stackoverflow.com/a/65408354 | |
With some changes to make it callable after initialization. | |
""" | |
from PySide2 import QtCore, QtWidgets |
This file contains 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
import sys | |
import argparse | |
""" | |
Example usecase: | |
python split_srt_lines.py SUBTITLE_FILE_PATH.srt -o OUTPUT_FILE_PATH.srt --max_line_length=42 --comma_split_percent=75 | |
if you don't specify an output path, it will replace the file content of the input file |
OlderNewer