Skip to content

Python to Scene Graph #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lborg019 opened this issue May 24, 2017 · 1 comment
Open

Python to Scene Graph #7

lborg019 opened this issue May 24, 2017 · 1 comment
Assignees

Comments

@lborg019
Copy link
Collaborator

I'm on it

@lborg019 lborg019 self-assigned this May 24, 2017
@alaingalvan
Copy link
Collaborator

@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
     _ => ()
  }
}

@alaingalvan alaingalvan changed the title Python server to parse python files into abstract syntax trees (AST) Python to Scene Graph Jun 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants