mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-07-12 06:55:20 +00:00
add camera controls to README
This commit is contained in:
parent
2a7af04023
commit
c20ca94953
3 changed files with 27 additions and 4 deletions
|
|
@ -1,7 +1,9 @@
|
|||
import fs from "node:fs/promises";
|
||||
import { execFileSync } from "node:child_process";
|
||||
|
||||
const blender = `/Applications/Blender.app/Contents/MacOS/Blender`;
|
||||
const BLENDER_PATH =
|
||||
process.env.BLENDER_PATH ||
|
||||
`/Applications/Blender.app/Contents/MacOS/Blender`;
|
||||
|
||||
/**
|
||||
* Find all .dif files in `public/base` and convert them to glTF.
|
||||
|
|
@ -10,7 +12,7 @@ async function run() {
|
|||
for await (const inFile of fs.glob("public/base/**/*.dif")) {
|
||||
const outFile = inFile.replace(/\.dif$/i, ".gltf");
|
||||
execFileSync(
|
||||
blender,
|
||||
BLENDER_PATH,
|
||||
[
|
||||
"--background",
|
||||
"--python",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
import fs from "node:fs/promises";
|
||||
import { execFileSync } from "node:child_process";
|
||||
|
||||
const blender = `/Applications/Blender.app/Contents/MacOS/Blender`;
|
||||
const BLENDER_PATH =
|
||||
process.env.BLENDER_PATH ||
|
||||
`/Applications/Blender.app/Contents/MacOS/Blender`;
|
||||
|
||||
/**
|
||||
* Find all .dts files in `public/base` and convert them to glTF.
|
||||
|
|
@ -10,7 +12,7 @@ async function run() {
|
|||
for await (const inFile of fs.glob("public/base/**/*.dts")) {
|
||||
const outFile = inFile.replace(/\.dts$/i, ".gltf");
|
||||
execFileSync(
|
||||
blender,
|
||||
BLENDER_PATH,
|
||||
[
|
||||
"--background",
|
||||
"--python",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue