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 | |
actions = bpy.data.actions | |
loop_names = ["_run_", "_walk_", "_sprint_", "loop", "flail"] | |
# reanme actions | |
for action in actions: | |
action.name = action.name \ | |
.replace("ALS_", "") \ |
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
# export AnimSequence as .glb | |
import unreal | |
rootPath = '/Game/AdvancedLocomotionV4' | |
outputDir = '/Users/{user_name}/Downloads/ExportALS/' # This case is macOS | |
# remove preview mesh to reduce export size | |
exportOptions = unreal.GLTFExportOptions() | |
exportOptions.export_preview_mesh = False | |
selectedActors = set() |
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 { GTR } from "https://deno.land/x/[email protected]/mod.ts"; | |
function zip<T, U>(a: T[], b: U[]): Array<[T, U]> { | |
return a.map((k, i) => [k, b[i]]); | |
} | |
const fileArg = Deno.args[0]; | |
if (!fileArg) { | |
console.error("Please provide a file path"); | |
Deno.exit(1); |
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
// 現状の Rust UI Node の z-order は、UI Component の Hierarchy だけで決まる | |
// 最終的には z_index とかを Style で指定して順序を変えられるようになるっぽいので、待とう | |
// (Sprite は Translation.z の値で重なりを制御できるけど) | |
use bevy::{ | |
input::{ | |
mouse::{MouseButtonInput, MouseMotion}, | |
ElementState, | |
}, | |
prelude::*, |
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
# gspm project.yml <https://gs-project-manager-docs.readthedocs.io/en/latest/schema.html> | |
name: Project | |
path: . | |
version: 0.0.0 | |
default_type: git | |
author: Max | |
email: [email protected] | |
twitter: (at)twitter | |
copyright: Copyright (c) 2020 | |
license: License Type |
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
# "crontab -e" してこれを入力、保存 | |
*/30 * * * * osascript -e 'display notification "体を動かそう" with title "運動不足に気をつけて"' |