This file contains 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 PySimpleGUI as sg | |
layout = [ [ sg.Text("ファイル選択"),sg.InputText(),sg.FileBrowse() ] , | |
[sg.Text("文字入力") ,sg.InputText("ここに文字入力",key ="-TEXT-")], | |
[sg.Checkbox("チェックボックス",key="CHECK-BOX-")], | |
[sg.Button("ボタン", key="-SAMPLE-BUTTON-")] , | |
[sg.Listbox(["Sample A","Sample B","Sample C"],size=(50,5))], | |
[sg.Combo(["Sample D","Sample E","Sample F"])], | |
[sg.ProgressBar(1000,orientation="h",size=(20,20),key="progbar")], | |
] |
This file contains 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 os | |
filepath = 'Sample/sample' | |
#フォルダ作成(存在すれば作成しない) | |
if not os.path.isdir(filepath): | |
os.mkdir(filepath) |
This file contains 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 | |
import bmesh | |
bl_info = { | |
"name": "TomoG_Sample", | |
"author": "TomoG", | |
"version": (1, 0), | |
"blender": (2, 9, 0), | |
"location": "", | |
"description": "sample", |
This file contains 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
<div class="box"> | |
<p id="res" class="res">まだクリック無し!</p> | |
<div class="btn-square"> | |
<p id="btn">ボタン</p> | |
</div> | |
</div> | |
<script>// <![CDATA[ | |
var Value = 0; | |
document.getElementById("btn").onclick = function() { |
This file contains 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
<script> | |
//実行したいJavaScriptを記載 | |
</script> | |
<style> | |
/*実行したいCSSを記載*/ | |
This file contains 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": "SampleAddon", | |
"author": "Your Name", | |
"version": (1, 0), | |
"blender": (2, 80, 2), | |
"location": "", | |
"description": "Sample", | |
"warning": "", |
This file contains 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
private void TimeNow() | |
{ | |
DateTime now = DateTime.Now; | |
int year = now.Year; | |
//年 | |
int month = now.Month; | |
//月 |
This file contains 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
using UnityEditor; |
This file contains 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
private void CopyTexture() | |
{ | |
private Sprite src_Picture;//元の画像 | |
private Sprite dst_Picture;//コピー画像 | |
//コピー先のパスを保存 | |
private string dst_path = AssetDatabase.GetAssetPath(dst_Picture); | |
//ファイルのコピー | |
AssetDatabase.CopyAsset(AssetDatabase.GetAssetPath(src_Picture), dst_path); |
This file contains 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
private void () | |
{ | |
private Sprite Picture;//パスを確認したいファイル | |
string Path = AssetDatabase.GetAssetPath(Picture); | |
} |