Skip to content

Instantly share code, notes, and snippets.

@cyaoeu
cyaoeu / SetVertexColor.py
Last active June 16, 2018 14:52
Blender addon: Set Vertex Color (License: GPL)
#
# Save into your addons directory as mesh_set_vertex_color.py
# and activate the add-on in user preferences
#
bl_info = {
"name" : "Set Vertex Color",
"author" : "Stanislav Blinov, edited by Henrik Berglund",
"version" : (1, 1, 0),
"blender" : (2, 79, 0),
@cyaoeu
cyaoeu / extractjson.py
Created July 11, 2018 13:55
Extract JSON from txt files containing other stuff
import shutil
import glob
path = "C:\\beatsaber\\OST\\"
filenames = glob.glob(path + "*.txt")
for filename in filenames:
with open(filename, 'r') as txtfile:
data=txtfile.read().replace('\n', '')
splitstring = data.split('_jsonData = "')[1].rsplit('"', 1)[0]
@cyaoeu
cyaoeu / gist:d6566022626782fd07dcdd9540e1bb5f
Created October 10, 2019 13:44
Blender random colors
(1,0,0,1),
(0,1,0,1),
(0,0,1,1),
(1,1,0,1),
(1,0,1,1),
(0,1,1,1),
(1,0.5,0.5,1),
(0.5,1,0.5,1),
(0.5,0.5,1,1),
(1,1,0.5,1),