NuiLab/code-vr

Python to Scene Graph

Opened this issue · 1 comments

I'm on it

@lborg019, The AST conforms to a certain schema, and will need to be converted to a scene with actors.

let ast = import_from_python("./mypythonfile.py");

for node in ast {
  match node {
     Node::Module(data) => {
        scene.add(Module::new(data));
     },
     // Match other types of modules
     // Repeat some stuff recursively
     _ => ()
  }
}