Skip to content

Instantly share code, notes, and snippets.

View harumaxy's full-sized avatar
🕶️
hello

Masaharu Hosomichi harumaxy

🕶️
hello
View GitHub Profile
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_", "") \
# 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()
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);
// 現状の Rust UI Node の z-order は、UI Component の Hierarchy だけで決まる
// 最終的には z_index とかを Style で指定して順序を変えられるようになるっぽいので、待とう
// (Sprite は Translation.z の値で重なりを制御できるけど)
use bevy::{
input::{
mouse::{MouseButtonInput, MouseMotion},
ElementState,
},
prelude::*,
# 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
# "crontab -e" してこれを入力、保存
*/30 * * * * osascript -e 'display notification "体を動かそう" with title "運動不足に気をつけて"'