mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-03 22:38:48 +08:00
Export camera path (#398)
* export button working * view changes * adding copy to clipboard feature * camera choice dropdown * going to add script saving next * copy paste working. need to add aspect ratio * aspect overlay kind of working * lint * aspect ratio fixed. version specified * merge * openrelay back
This commit is contained in:
1 parent
f21375ff1b
commit
9bc39d895c
21 files changed
+676
-196
No files matched your search
@@ -28,7 +28,8 @@ function dispose(object) {
|
||||
|
||||
export default class SceneNode {
|
||||
constructor(object) {
|
||||
this.object = object;
|
||||
this.metadata = {}; // relevant metadata for the object
|
||||
this.object = object; // three.js objects
|
||||
this.children = {};
|
||||
for (const c of this.object.children) {
|
||||
this.add_child(c);
|
||||
@@ -108,7 +109,7 @@ export default class SceneNode {
|
||||
|
||||
delete(path) {
|
||||
if (path.length === 0) {
|
||||
console.error("Can't delete an empty path");
|
||||
console.error("Can't delete an empty path.");
|
||||
} else {
|
||||
const parent = this.find(path.slice(0, path.length - 1));
|
||||
const name = path[path.length - 1];
|
||||
|
||||
Reference in new issue
Block a user