mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 09:48:44 +00:00
completed timeline with lipsync
This commit is contained in:
1 parent
0763fe9cd3
commit
1feba3bc64
1 file changed
+3
-2
@@ -162,12 +162,12 @@ class Editor {
|
||||
// Test code here
|
||||
// this.test_box_uuid = this.activeScene.instantiate("Box");
|
||||
// let object = this.transform_engine.loadObject(this.test_box_uuid);
|
||||
// this.timeline.addPlayableClip(new ClipUI(1.0, "transform", object.object_uuid, object.media_id, 50, 300));
|
||||
// this.timeline.addPlayableClip(new ClipUI(1.0, "audio", "m_f7jnwt3d1ddchatdk5vaqt0n4mb1hg", null, 50, 50));
|
||||
|
||||
let object = await this.activeScene.load_glb("./resources/models/fox/fox.glb")
|
||||
this.lipsync_engine.load_object(object.uuid, "m_f1jxx4zwy4da2zn0cvdqhha7kqkj72");
|
||||
this.timeline.addPlayableClip(new ClipUI(1.0, "lipsync", "clip1", "m_f1jxx4zwy4da2zn0cvdqhha7kqkj72", object.uuid, 10, 200));
|
||||
this.timeline.addPlayableClip(new ClipUI(1.0, "lipsync", "clip1", "m_f1jxx4zwy4da2zn0cvdqhha7kqkj72", object.uuid, 150, 400));
|
||||
this.timeline.addPlayableClip(new ClipUI(1.0, "transform", "clip2", object.uuid, object.uuid, 0, 150));
|
||||
}
|
||||
|
||||
// Configure post processing.
|
||||
@@ -253,6 +253,7 @@ class Editor {
|
||||
|
||||
if(this.selected == null) {return;}
|
||||
this.transform_engine.addFrame(this.selected)
|
||||
console.log("Frame taken.")
|
||||
}
|
||||
|
||||
change_camera_view() {
|
||||
|
||||
Reference in new issue
Block a user