Skip to content

Instantly share code, notes, and snippets.

@iCyP
iCyP / blender_keymap2csv.py
Last active December 11, 2015 18:18
blenderのショートカットをcsvで、blender.exeと同じディレクトリに、 keymap.csv として書き出すスクリプト 一部環境(オンボードグラフィックス?)ではフリーズします。 特徴: 1.日本語も出力, ex: Mesh,Make Normals Consistent,法線を一様に,mesh.normals_make_consistent,N+ctrl,N,FALSE,TRUE,FALSE 2.call menuは呼ばれるmenuに変換※ ※日本語変換なし ex:Call menu -> en:Special ja:Special
# coding: utf-8
import bpy
import csv
def char_replacer(str):
for words in char_dic:
str = str.replace(words,char_dic[words])
str = str.capitalize()
return str
@iCyP
iCyP / keymap109.html
Last active December 13, 2015 22:49 — forked from lab1092/keymap109.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<style type="text/css">
<!--
#tbl span{
display: inline-block;
@iCyP
iCyP / readme
Last active July 25, 2018 10:51
blender用スクリプト。使用したこと等による損害等一切無保証、自己責任でどうぞ
使い方
1 .下記スクリプトのresolution,frames,outPutPassesをよしなに書き換える
※とりあえず 初期のまま、デスクトップにでもuntitle.blendを保存して、それで試して見ることをおすすめします。
以下a,b好きな方で
2a. cmdなりPowerShellなりBashなりZshなりで ./blender.exe -b <ここにレンダリングしたい*.blendのパス> -P resourceRenderScript.py (->このスクリプトのあるパス)
2b. blenderでレンダリングしたい *.blend を開いて、blenderのテキストエディタにこれを貼り付けてAlt+P
3. *.blendと同じフォルダに、同じ名前でフォルダが作られ、その中に結果が入ります。
注意
@iCyP
iCyP / LICENSE
Last active August 29, 2015 13:55
The MIT License (MIT)
Copyright (c) 2014 iCy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
bl_info = {
"name": " Select children",
"author": "icyp",
"version": (0, 1),
"blender": (2, 69, 0),
"location": "View3D",
"description": "select Children",
"warning": "",
"wiki_url": "",
"tracker_url": "",
@iCyP
iCyP / reload_all_texture.py
Last active January 18, 2019 14:40
for blender2.79
import bpy
bl_info = {
"name":"Image_reloader",
"author": "iCyP",
"version": (0, 1),
"blender": (2, 79, 0),
"location": "ImageEditor->Tools",
"description": "image reloader",
"warning": "",
@iCyP
iCyP / node_placer.py
Last active January 11, 2019 13:56
blender_node_placer
import bpy
def node_placer(parent_node):
bottom_pos = [parent_node.location[0]-100-parent_node.width, parent_node.location[1]]
for child_node in [link.from_node for socket in parent_node.inputs for link in socket.links]:
child_node.location = bottom_pos
bottom_pos[1] -= (parent_node.height +100)
for ch_node in [link.from_node for socket in child_node.inputs for link in socket.links]:
node_placer(child_node)
return
node_placer(#output node object here)
@iCyP
iCyP / img_reloader_4_280.py
Last active January 18, 2019 14:53
image all reloader for blender2.80
import bpy
bl_info = {
"name":"Image_reloader",
"author": "iCyP",
"version": (0, 1),
"blender": (2, 80, 0),
"location": "ImageEditor->Tools",
"description": "image reloader",
"warning": "",
"support": "TESTING",
@iCyP
iCyP / macro.py
Created February 4, 2019 14:36
all shadeless and rim false
import bpy
for obj in bpy.context.selected_objects:
if obj.type == "MESH":
if obj.material_slots is not None:
for mats in obj.material_slots:
mats.material.use_shadeless = True
if mats.material.texture_slots is not None:
for ts in mats.material.texture_slots:
if ts is None:
continue
@iCyP
iCyP / new_hook_add_shortcut.py
Created February 13, 2019 11:33
new_hook_add_shortcut
import bpy
bl_info = {
"name":"new_hook_add_shortcut",
"author": "iCyP",
"version": (0, 1),
"blender": (2, 80, 0),
"location": "EditMode->Right click",
"description": "add shortcut to hook selected to new empty",
"warning": "",
"support": "TESTING",