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 |
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
__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
""" | |
FancySeparate by Richard Brenick | |
(written for JKeys) | |
A combined Separate/Extract script. | |
Also does some clean up of groups created by seperate function. | |
""" | |
import maya.cmds as cmds | |
import maya.mel as mel |
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 os | |
import pymel.core as pm | |
import json | |
from PySide2 import QtCore, QtGui | |
def generate_lowres_textures(output_textures_folder, new_size=1024): | |
""" | |
generate lowres textures from those found in the maya scene | |
""" | |
generated_texture_paths = [] |
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]" | |
import sys | |
from functools import partial | |
from maya import mel | |
from maya import cmds | |
from maya import OpenMayaUI as omui | |
from PySide2 import QtCore, QtWidgets, QtGui | |
from shiboken2 import wrapInstance |
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
# quick script to split a big unreal.py stubs file into multiple smaller ones | |
# for use as autocompletion in PyCharm (without having to increase the memory allocation) | |
__author__ = "[email protected]" | |
__version__ = "1" | |
import os | |
# path to unreal stubs | |
unreal_stubs_src_path = r"YOUR_PROJECT_HERE\Intermediate\PythonStub\unreal.py" |
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
from maya import cmds | |
class ReturnCode: | |
anim_layer_found = "anim_layer_found" | |
def preview_frame_from_atom(atom_path, preview_first_frame=True): | |
""" | |
Manual parse through the .atom file and figure out what a frame looks like |
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 pymel.core as pm | |
# This is a script that connects one of the rigs from Maya's Content Browser to the IKRig from https://github.com/chadmv/cmt | |
base_ik_rig_list = [ | |
"IKRig_Root", | |
"IKRig_Hips", | |
"IKRig_Chest", | |
"IKRig_Neck", | |
"IKRig_Head", |
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__ = "Richard Brenick - [email protected]" | |
__created__ = "2020-09-05" | |
__license__ = "MIT License" | |
import os | |
from Qt import QtCore, QtWidgets | |
class QtFilePath(QtWidgets.QWidget): |
NewerOlder