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
""" | |
Shot notes display in camera view | |
""" | |
import bpy | |
import blf | |
import gpu | |
from gpu_extras.batch import batch_for_shader | |
from mathutils import Vector |
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 bpy | |
def create_assets_from_empty_children(): | |
# Get all empties in the scene | |
empties = [obj for obj in bpy.data.objects if obj.type == 'EMPTY'] | |
for empty in empties: | |
# Get direct mesh children | |
children = [obj for obj in empty.children if obj.type == 'MESH'] | |
if len(children) < 1: |
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 maya.OpenMayaUI as mui | |
import shiboken2 | |
from PySide2 import QtWidgets | |
def set_script_editor_wordwrap(): | |
# Get Maya's main window | |
ptr = mui.MQtUtil.mainWindow() | |
main_window = shiboken2.wrapInstance(int(ptr), QtWidgets.QMainWindow) | |
# Find feedback panel using type instead of name |
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 maya.cmds as cmds | |
gate_color = (0.0, 0.0, 0.0) | |
def get_cameras_in_group(group_name): | |
group_members = cmds.listRelatives(group_name, children=True) | |
# Filter out cameras | |
cameras = [] | |
if group_members: |
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 maya.cmds as cmds | |
camera_name = 'ubercam' | |
cameras_group = 'Cameras' | |
overscan_value = 1.2 | |
gate_color = (0.0, 0.0, 0.0) | |
gate_opacity = 1.0 | |
if cmds.objExists(camera_name): |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "https://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.liamhinzman.arbtt</string> | |
<key>Program</key> | |
<string>/Users/liamhinzman/screenshot.sh</string> | |
<key>RunAtLoad</key> | |
<true/> |
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
// Store a backup ppm after rendering every 100 rows | |
if (j % 100 == 0) { | |
ofs.close(); | |
temp_filename = "./out_" + std::to_string(ny-j) + ".ppm"; | |
std::ifstream src("out.ppm", std::ios::binary); | |
std::ofstream dst(temp_filename, std::ios::binary); | |
dst << src.rdbuf(); |
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
{ | |
"profiles": [ | |
{ | |
"name": "Default profile", | |
"selected": true, | |
"complex_modifications": { | |
"rules": [ | |
{ | |
"description": "A Modern Space Cadet (Steve Losh)", | |
"manipulators": [ |
NewerOlder