Commit 3f46ec46 authored by frankie's avatar frankie 💬

test with other generated models

parent c0c7118a
......@@ -104,6 +104,23 @@ config_pantonpouf.debug_anchors = false;
config_pantonpouf.ready_callbak = on_pouf_ready;
*/
sisyphus_cubes = [
"models/sisyphus_cube_2018.09.13.14.15.01_morph.json",
"models/sisyphus_cube_2018.10.04.12.33.17_morph.json",
"models/sisyphus_cube_2018.10.05.18.54.04_morph.json",
"models/sisyphus_cube_2018.10.05.18.57.33_morph.json",
"models/sisyphus_cube_2018.10.05.19.01.00_morph.json",
"models/sisyphus_cube_2018.10.05.19.04.39_morph.json",
"models/sisyphus_cube_2018.10.05.19.08.29_morph.json",
"models/sisyphus_cube_2018.10.05.19.12.04_morph.json",
"models/sisyphus_cube_2018.10.05.19.15.58_morph.json",
"models/sisyphus_cube_2018.10.05.19.19.54_morph.json",
"models/sisyphus_cube_2018.10.05.19.23.46_morph.json",
"models/sisyphus_cube_2018.10.05.19.27.35_morph.json",
"models/sisyphus_cube_2018.10.05.19.31.34_morph.json",
"models/sisyphus_cube_2018.10.05.19.35.34_morph.json"
];
// *********************************
// ************ GLOBALS ************
// *********************************
......@@ -232,7 +249,7 @@ function init_threejs() {
cube = new Cube();
//cube.path = "models/sisyphus_cube_2018.09.13.14.15.01_morph.json";
cube.path = "models/sisyphus_cube_2018.10.04.12.33.17_morph.json";
cube.path = sisyphus_cubes[11];
cube.scene = scene;
cube.ready_callbak = on_cube_ready;
cube.load();
......
import os
json = open( 'sisyphus_cubes.json', 'w' )
json.write( '{\n\t"data":[' )
fnum = 0
for dirname, dirnames, filenames in os.walk('.'):
filenames.sort()
for f in filenames:
if f[-11:] == '_morph.json':
if fnum > 0:
json.write( ',' )
json.write( '\n\t\t' )
json.write( '"models/' + f + '"' )
fnum += 1
json.write( '\n\t]\n}' )
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
{
"data":[
"models/sisyphus_cube_2018.09.13.14.15.01_morph.json",
"models/sisyphus_cube_2018.10.04.12.33.17_morph.json",
"models/sisyphus_cube_2018.10.05.18.54.04_morph.json",
"models/sisyphus_cube_2018.10.05.18.57.33_morph.json",
"models/sisyphus_cube_2018.10.05.19.01.00_morph.json",
"models/sisyphus_cube_2018.10.05.19.04.39_morph.json",
"models/sisyphus_cube_2018.10.05.19.08.29_morph.json",
"models/sisyphus_cube_2018.10.05.19.12.04_morph.json",
"models/sisyphus_cube_2018.10.05.19.15.58_morph.json",
"models/sisyphus_cube_2018.10.05.19.19.54_morph.json",
"models/sisyphus_cube_2018.10.05.19.23.46_morph.json",
"models/sisyphus_cube_2018.10.05.19.27.35_morph.json",
"models/sisyphus_cube_2018.10.05.19.31.34_morph.json",
"models/sisyphus_cube_2018.10.05.19.35.34_morph.json"
]
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment