-
Notifications
You must be signed in to change notification settings - Fork 99
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
Preview mode for the script #1
Conversation
Hi I followed the link, but I can't edit the script... :( |
Hi, I've been working on something similar - but wanted a fully web-based way for users to edit things (similar to jsfiddle) and found trinket.io. https://trinket.io/python/61921f843e I've only gotten as far as to draw the dot cloud as well as do some simple matrix rotations current status:
Note: I'm looking for input but don't wanna hijack the conversation in this pull request - I'll maybe open an issue later to have a separate thread if people are interested. |
Sorry for the confusion there. Right now the text on the site isn't editable but the way to try out changes would be:
Pretty manual but it kind of works (and at least faster than to wait for Matt to run it on a real tree). I didn't have time to make live editing in the browser work last night, so I just added a
Thanks for sharing, @mreithub! That looks pretty neat. I think in the background both solutions use the same "guts" ( |
Pushed some cleanup:
|
Not sure why, but this simulator produces random results for my fire script. The other simulators work fine, eg. #5 |
Hi, mreithub, I've adapted the example to your code, and tried to allow for both hardware and simulation target. I'm really unsure as to whether I got the front/back right. |
This is super hacky but I thought it might become handy for some people: A way to preview the result of the script, at least roughly. Currently only tested with the example script in the repo. No fancy camera controls or light effects. But it allows editing the Python script, reloading the page, and seeing it in action.
Live demo: https://jkrems.dev/xmastree2020/preview/