Skip to content

Instantly share code, notes, and snippets.

import bpy
import math
width = max(1,math.ceil(len(bpy.data.materials)**(1/3) ))
for i in range(width):
for j in range(width):
for n in range(width):
try:
bpy.data.materials[i*width*width+j*width+n].diffuse_color = (i/width,j/width,n/width,1)
except:
@iCyP
iCyP / reset_sculpt_brushes.py
Created November 23, 2019 02:53
reset sculpt brushes
import bpy
for br in bpy.data.brushes:
if br.sculpt_tool != "DRAW" or br.name != "SculptDraw":
bpy.context.tool_settings.sculpt.brush = br
bpy.ops.brush.reset()
@iCyP
iCyP / aiueo.md
Created December 19, 2019 05:06
en->JIS_JP keybord compalision
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
3 t x q u f j 7 o
e g d a i v n 8 l
4 h r z 1 2 ] 9 .
5 : p w , ^ | ;
6 b c s k - m
#UNDER MIT LINCENCE @ ICYP 2020
#bone roll must be 0
import csv
import bpy
from math import radians
from mathutils import Vector,Euler,Quaternion
with open("C:\\Users\\hornt\\Downloads\\michicon_motion_20200601_123822.csv",newline="") as byebyecsv:
motionreader = csv.reader(byebyecsv)
names = None
for row in motionreader:
@iCyP
iCyP / pronpt.txt
Created July 18, 2023 10:50
vtuber auto open app prompt
以下に、これまでの会話で要求された仕様を箇条書きにします:
チャンネル名とURLを検索するためのテキストボックスを備えたGUIアプリケーションを作成する。
検索結果を表示し、選択したチャンネルを特定の日時に開く機能を提供する。
Google Chromeを使用して選択したチャンネルを開く。これはPythonのsubprocessを使ってChromeを起動することで実現する。
日時入力欄はTkinterのリストボックスを使用し、月、日、時間(時、分)を入力できるようにする。デフォルト値は現在の日時で、分は15分刻みで設定する。
検索はあいまい検索であり、検索クエリがチャンネル名またはURLに含まれる場合に該当のチャンネルを検索結果に表示する。
検索結果から一つのチャンネルを選択できるようにする。
検索結果は検索ごとにリセットする。
日時設定ボタンの左に現在選択しているチャンネルを表示する。