Skip to content

Instantly share code, notes, and snippets.

@lab1092
lab1092 / convfileblender.bat
Created March 17, 2015 16:31
OBJファイルを自動的にインポートした状態でBlenderを開く、の続き
c:\blender\blender.exe -P C:\Users\username\desktop\testconv.py -b -- %1
@lab1092
lab1092 / shiirareteirunda.py
Last active August 29, 2015 13:56
強いられているんだメッシュを(途中まで)作ります… https://twitter.com/blug_jp/status/431974444689399808/photo/1 から着想。うまくピボットのモードが更新されてないので手作業が必要。
# A script to make focus line mesh , SHIIRARETEIRUNNDA
# for 2.69 , load text editor and hit Alt+P
# (limitation: you must display one 3dview to run this)
# (limitation2: do not run this twice)
import bpy
bpy.ops.mesh.primitive_circle_add(vertices=200, view_align=False, enter_editmode=True)
bpy.ops.mesh.subdivide(smoothness=0, fractal=5)
bpy.ops.mesh.select_nth(nth=3)
bpy.ops.mesh.delete(type='VERT')
bpy.ops.mesh.select_all(action='TOGGLE')
<?xml version="1.0" encoding="UTF-8"?>
<!-- XSLT file for blender theme 2.6+ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" encoding="UTF-8"/>
<xsl:template match="/bpy/Theme">
<HTML>
<BODY>
<xsl:call-template name="Windows"/>
</BODY>
</HTML>
@lab1092
lab1092 / gist:5810554
Created June 18, 2013 23:48
Blender 2.67b Release Mac x86
============================================
= Blender 2.67 (sub 0) System Information =
============================================
Blender:
============================================
version 2.67 (sub 0), revision b'57123M'. b'Release'
build date: b'2013-05-29', b'22:27:25'
@lab1092
lab1092 / gist:5807340
Created June 18, 2013 17:13
Blender 2.67b on Windows(x86)
============================================
= Blender 2.67 (sub 0) System Information =
============================================
Blender:
============================================
version 2.67 (sub 0), revision b'57141'. b'Release'
build date: b'2013-05-30', b'14:42:25'
@lab1092
lab1092 / gist:5797066
Created June 17, 2013 13:58
「訳してみた」的な。
@lab1092
lab1092 / keymap109.html
Last active December 13, 2015 22:29
Blenderのキーボードショートカットを表示させようかなと思ってみたのじゃが…
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<style type="text/css">
<!--
#tbl span{
display: inline-block;
@lab1092
lab1092 / romankana.html
Created January 31, 2013 10:18
テキストボックスの文字列をローマ字表記(アルファベット大文字)からひらがなに変換するなど。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script>
var ROMANHIRAGANATABLE = {
'A' :'あ',
'I' :'い',
'U' :'う',