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 | |
| 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) |
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
| /Menus { | |
| /navigateToPreviousDocumentGroup { | |
| /Context 0 | |
| /Modifiers 224 | |
| /Represent 19 | |
| /Key 19 | |
| } | |
| /navigateToNextDocumentGroup { | |
| /Context 0 | |
| /Modifiers 192 |
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
| /Menus { | |
| /navigateToPreviousDocumentGroup { | |
| /Context 0 | |
| /Modifiers 224 | |
| /Represent 19 | |
| /Key 19 | |
| } | |
| /navigateToNextDocumentGroup { | |
| /Context 0 | |
| /Modifiers 192 |
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
| 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'; } })() |
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 | |
| bl_info = { | |
| "name": "Run Script Easily", | |
| "author": "todashuta", | |
| "version": (1, 0, 2), | |
| "blender": (2, 80, 0), | |
| "location": "3D View > Side Bar > Script", | |
| "description": "", |
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
| # ##### 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 |
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
| var doc = app.activeDocument; | |
| //alert(doc.fullName); | |
| var file = new File(doc.fullName); | |
| var options = new BMPSaveOptions; | |
| doc.saveAs(file, options, false, Extension.LOWERCASE); |
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
| 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 { |
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
| 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', | |
| \ } |
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 | |
| bl_info = { | |
| "name": "View Manipulation Utility", | |
| "author": "todashuta", | |
| "version": (1, 2, 0), | |
| "blender": (2, 80, 0), | |
| "location": "", | |
| "description": "", |