Skip to content

Instantly share code, notes, and snippets.

View todashuta's full-sized avatar
👋
(  ̄ ♢  ̄ )

todashuta todashuta

👋
(  ̄ ♢  ̄ )
View GitHub Profile
@todashuta
todashuta / outliner_selected_ids_example.py
Created August 29, 2021 04:20
Outliner selected_ids Example (context.selected_ids)
import bpy
class OutlinerSelectedIdsExample(bpy.types.Operator):
bl_idname = "outliner.selected_ids_example"
bl_label = "Outliner selected_ids Example"
@classmethod
def poll(cls, context):
return isinstance(context.space_data, bpy.types.SpaceOutliner)
@todashuta
todashuta / Illustrator Defaults en_US v25.3.1.kys
Created July 31, 2021 02:29
Adobe Illustrator 2021 (v25.3.1) デフォルトキーボードショートカット en_US (英語版)
/Menus {
/navigateToPreviousDocumentGroup {
/Context 0
/Modifiers 224
/Represent 19
/Key 19
}
/navigateToNextDocumentGroup {
/Context 0
/Modifiers 192
@todashuta
todashuta / Illustrator Defaults en_US v24.3.kys
Last active July 18, 2021 04:46
Adobe Illustrator 2020 (v24.3) デフォルトキーボードショートカット en_US (英語版)
/Menus {
/navigateToPreviousDocumentGroup {
/Context 0
/Modifiers 224
/Represent 19
/Key 19
}
/navigateToNextDocumentGroup {
/Context 0
/Modifiers 192
@todashuta
todashuta / toggle-github-theme.js
Last active May 15, 2021 03:18
Toggle GitHub Theme (Light or Dark) Bookmarklet
javascript:(() => { const hostnames = ['github.com', 'gist.github.com']; if (hostnames.some((h) => document.location.hostname === h)) { const dataset = document.getElementsByTagName('html')[0].dataset; dataset.colorMode = dataset.colorMode === 'light' ? 'dark' : 'light'; dataset.darkTheme = 'dark_dimmed'; } })()
import bpy
bl_info = {
"name": "Run Script Easily",
"author": "todashuta",
"version": (1, 0, 2),
"blender": (2, 80, 0),
"location": "3D View > Side Bar > Script",
"description": "",
@todashuta
todashuta / toggle_translated_tooltips_and_interface.py
Created May 2, 2020 11:14
ツールチップとインターフェースのチェックをトグルするアドオン
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@todashuta
todashuta / SaveAsBMP.jsx
Created March 1, 2020 09:55
PhotoshopでBMP形式で保存する
var doc = app.activeDocument;
//alert(doc.fullName);
var file = new File(doc.fullName);
var options = new BMPSaveOptions;
doc.saveAs(file, options, false, Extension.LOWERCASE);
fn fac(n: i32) -> i32 {
if n <= 1 {
1
} else {
n * fac(n-1)
}
}
fn tarai(x: i32, y: i32, z: i32) -> i32 {
if x <= y {
@todashuta
todashuta / quickrun-rust.vim
Created February 1, 2020 05:16
quickrun config rust (windows) (.exeが要った)
let g:quickrun_config['rustwin'] = {
\ 'command': 'rustc',
\ 'exec': ['%c %o %s -o %s:p:r.exe', '%s:p:r.exe %a'],
\ 'tempfile': '%{fnamemodify(tempname(), ":r")}.rs',
\ 'hook/shebang/enable': 0,
\ 'hook/sweep/files': '%S:p:r.exe',
\ }
@todashuta
todashuta / view_manipulation_utility.py
Last active January 1, 2020 18:04
ViewManipulation_Panel (状況や用途で変えたいビュー操作の設定をパネルに表示するやつ)
import bpy
bl_info = {
"name": "View Manipulation Utility",
"author": "todashuta",
"version": (1, 2, 0),
"blender": (2, 80, 0),
"location": "",
"description": "",