Moguri / BlenderPanda

Blender addon for integrating Panda3D
MIT License
76 stars 11 forks source link

Entry points for running projects #42

Open Schwarzbaer opened 6 years ago

Schwarzbaer commented 6 years ago

Since different artists collaborating on a project will likely need several starting points (or the same artist might need them as well when working on different parts of the project), having support for that would be helpful. To minimize effort for the artist when working with them, I suggest that a dropdown menu be added near the "Run Project" button, which enumerates available entry points, and persists the chosen point during Blender restarts / recoveries. For the implementation I suggest mimicking pytest. Entry points shall be functions in main.py with names that start with entry_, so that they can automatically be recognized and listed in the dropdown menu. Alternatively, methods of the GameApp class, likewise starting with entry_ could be used instead. On running the project, the chosen name can be passed as a command line argument, and the method, if specified, be called at the end of GameApp.__init__().

Moguri commented 5 years ago

Would exposing the extra_args from pman be sufficient for this?