You are browsing as a guest. Sign up (or log in) to start making projects!

5h 5m 11s logged

Feature Menu

I expanded on the feature templates, honestly went through 3 different iterations before settling on this one. This new one introduces dynamic fields, meaning sections can be shown or hidden based on the values of other fields.

I also wrote a nicer interface for the menu, and got the a lot of different data-type inputs working. The nice thing about my custom schema-format for the fields is primitive inputs like numbers and check boxes are just as seamless as custom ones like face selectors.

The next obvious step is making the feature actually work, which will require a small bit of refactoring. It would be really inefficient to recompute the entire script each time a feature is modified (especially if I want live updates while editing the feature) so I’d like to use Pyodide’s ability to interact with Python objects directly. Unfortunatly, the object responsible for that (PyProxy) is not serializable and can’t be shared between the worker and UI.

The fix is setting up an RPC system and having all the features/tools live on the worker and the UI just uses comlink to call them.

0
14

Comments 0

No comments yet. Be the first!