This file contains hidden or 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
i = IntProperty( | |
name = "Integer", | |
description = "Integer ...", | |
default = 0, | |
min = -100, | |
max = 400) |
This file contains hidden or 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 | |
from bpy.props import * | |
# セレクトボックスに表示したい項目リストを作成する関数 | |
def get_object_list_callback(scene, context): | |
items = [] | |
# itemsに項目を追加する処理... | |
return items |
This file contains hidden or 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
$ cordova plugin add org.apache.cordova.inappbrowser` |
This file contains hidden or 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 sys | |
DEBUGGING = True | |
def start_debug(): | |
if DEBUGGING is True: | |
PYDEV_SRC_DIR = "(eclipseディレクトリへのパス)/plugins/org.python.pydev_XXXXX/pysrc" # 環境に応じて書き換えが必要 | |
if PYDEV_SRC_DIR not in sys.path: | |
sys.path.append(PYDEV_SRC_DIR) | |
import pydevd |
This file contains hidden or 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
$ yum install https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.rpm |
This file contains hidden or 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
1. リスト1 | |
本文1 | |
\```c | |
#include <stdio.h> | |
int a = 60; | |
flota c = 80.0f; |
This file contains hidden or 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
bl_info = { | |
# ... | |
} | |
if "bpy" in locals(): | |
import imp | |
imp.reload(op1) | |
imp.reload(op2) | |
else: | |
from . import op1 |
This file contains hidden or 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 | |
translation_dict = { | |
"ja_JP": {("*", "key1"):"hoge"}, | |
"en_US": {("*", "key1"):"test"}} | |
class TranslationTestClass(bpy.types.Operator): | |
bl_idname = "uv.translation_test" | |
def execute(self, context): | |
self.report({'INFO'}, bpy.app.translations.pgettext("key1")) |
This file contains hidden or 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
{locale: {(context, key): translated_str, ...}, ...} |
This file contains hidden or 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
# 'N'キーを押したときにVIEW 3Dの右側に表示されるメニューにボタンを設置 | |
class OBJECT_PT_MKET(bpy.types.Panel): | |
bl_label = "Mouse/Keyboard Event Test" | |
bl_space_type = "VIEW_3D" | |
bl_region_type = "UI" | |
def draw(self, context): | |
# ボタンの配置 | |
# ... |