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
""" | |
Given a flat list copy pasted as csv from PIX Timing capture, list unique names | |
""" | |
def main(): | |
names = list() | |
with open("renderthread_dump.csv", 'r') as f: |
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
import os | |
import sys | |
import re | |
import argparse | |
def main(): | |
parser = argparse.ArgumentParser( | |
description="Tool to get a quick overview of number of files and lines of text" | |
) |
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
# python | |
import lx | |
def get_selection_mode(): | |
""" Get the current selection mode | |
:rtype: int |
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
""" | |
Start a timer to call the function "hey" every half second. | |
Have yet to figure out how to kill this... | |
""" | |
import unreal |
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
# python | |
import lx | |
from P4 import P4 | |
from P4 import Progress | |
from P4 import P4Exception | |
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
import lx | |
from time import sleep | |
SECONDS = 15 | |
# Initialize the monitor object, ie progress bar. | |
monitor = lx.Monitor() | |
monitor.init(SECONDS) | |
# Mimic a long operation that users might want to stop. |
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
import unreal | |
@unreal.uclass() | |
class OnAssetPostImportAction(unreal.EditorUtilityObject): | |
@unreal.ufunction(override=True) | |
def run(self): | |
""" Add a callable static function to be called whenever an asset is | |
imported. |
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
# python | |
# -*- coding: utf-8 -*- | |
""" | |
Fire and forget script to parse and restore a kits default configuration. | |
>>> @restore_defaults.py myKit | |
""" |
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
""" | |
Open the Widget for a Blueprint Widget Utility | |
""" | |
import unreal | |
def main(): |