- Import with the Phobos add-on
- Delete everything except the armatures and the visual meshes
- Edit the Blender file (upper right - Display Mode -> Blender File) and delete the Phobos bone visuals under Meshes
- Clear the parents (keep transformation) for the visual meshes
- Clear the armature parents
- Rename each bone to match the name of the parent armature so you can tell which is which after the next step
- Join all of the armatures
- In edit mode, reparent the bones in the correct hierarchy (keep offset)
- In object mode, parent the meshes to their corresponding bones. NOTE: Use “bone” parent not “bone relative”. If it causes an offset in the mesh then undo and repeat it again. This is probably a bug in Blender? But it works.
- In pose mode, move bones and confirm that the meshes move as expected.
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
#!/usr/bin/env python3 | |
import os | |
import subprocess | |
import sys | |
import tempfile | |
from plyfile import PlyData | |
def convert_to_ply(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
import numpy as np | |
from python_tsp.heuristics import solve_tsp_simulated_annealing | |
node = hou.pwd() | |
geo = node.geometry() | |
def construct_distance_matrix(edges): | |
# Find the maximum index to determine the size of the matrix | |
max_index = max(max(edge) for edge in edges) |
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
# Usage: | |
# blender my_scene.blend --background --python extract_positions.py -- Foo Bar | |
import bpy | |
import json | |
import sys | |
def get_object_data(object_names): | |
data = {} |
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
<!doctype html> | |
<html> | |
<head> | |
<script type="module"> | |
// WICG Shape Detection API | |
// - https://wicg.github.io/shape-detection-api/ | |
try { | |
const start = document.getElementById("start"); | |
const video = document.getElementById("video"); | |
const result = document.getElementById("result"); |
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
# To test with FFmpeg only: | |
# python3 capture.py | ffmpeg -f rawvideo -pixel_format bgr24 -video_size 640x480 -framerate 30 -i - foo.avi | |
# To create WebRTC stream with [ffmpeg-to-webrtc](https://github.com/ashellunts/ffmpeg-to-webrtc): | |
# go run . -rtbufsize 100M -f rawvideo -pixel_format bgr24 -video_size 640x480 -framerate 30 -i video -c:v libx264 -bsf:v h264_mp4toannexb -b:v 2M -max_delay 0 -bf 0 -f h264 - < SDP.txt | |
import time | |
import cv2, sys | |
cam = cv2.VideoCapture(0) |
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 | |
# Get the active object | |
active_obj = bpy.context.active_object | |
# Get all selected objects | |
selected_objs = bpy.context.selected_objects | |
# Check that active object is a mesh | |
if active_obj.type != 'MESH': |
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 | |
# Create a new Grease Pencil object to hold the drawing | |
bpy.ops.object.gpencil_add(location=(0, 0, 0)) | |
grease_pencil = bpy.context.object | |
grease_pencil.name = "ScriptedGreasePencil" | |
layer = grease_pencil.data.layers.new("Layer") | |
grease_pencil.data.layers.active = layer |
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 pathlib import Path | |
import numpy as np | |
from PIL import Image | |
node = hou.pwd() | |
geo = node.geometry() | |
hip_path = Path(hou.hipFile.path()) | |
render_dir = hip_path.parent / 'render' | |
image_path = hou.parm('image_out_filename').eval() |
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
// ==UserScript== | |
// @name Remove published releases from GitHub feed | |
// @namespace Violentmonkey Scripts | |
// @match https://github.com/ | |
// @grant none | |
// @version 1.0 | |
// @author Owen Trueblood | |
// @description Remove published releases from GitHub feed | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js |
NewerOlder