From 481c8aa424ec7f20cec7d5c92eb8b46cb34887c2 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 17 Mar 2020 15:54:42 +1100 Subject: [PATCH] scripts: add jq processing scripts for animation outputs --- scripts/list_assimp_nodes.sh | 1 + scripts/list_fbx_animation_channels.sh | 1 + 2 files changed, 2 insertions(+) create mode 100644 scripts/list_assimp_nodes.sh create mode 100644 scripts/list_fbx_animation_channels.sh diff --git a/scripts/list_assimp_nodes.sh b/scripts/list_assimp_nodes.sh new file mode 100644 index 0000000..5bb8062 --- /dev/null +++ b/scripts/list_assimp_nodes.sh @@ -0,0 +1 @@ +./src/model-tool -c tree -i ~/src/lobo/assets/object/manModel.fbx 2>/dev/null | cruft/json/tools/format - | jq -cr ". as \$in | [\$in | leaf_paths] | map(select(.[0] == \"root\" and .[-1] == \"name\")) | map(. as \$path | \$in | getpath(\$path)) | join(\"\n\")" diff --git a/scripts/list_fbx_animation_channels.sh b/scripts/list_fbx_animation_channels.sh new file mode 100644 index 0000000..4d75c70 --- /dev/null +++ b/scripts/list_fbx_animation_channels.sh @@ -0,0 +1 @@ +./src/model-tool -c tree -i ~/src/lobo/assets/object/manModel@walk.fbx 2>/dev/null | cruft/json/tools/format - | jq -r ".animations[0].channels | map(.name) | join(\"\\n\")" | sort > walk.fields