code-vr
code-vr copied to clipboard
Python to Scene Graph
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
_ => ()
}
}