I’m doing some prototypes in a Playground and I needed to model a scene. As I’m a noob with Blender, I want fast iterations between modeling/editing/tweaking and testing the result.
So, I did a small script that runs a HTTP server and streams the Blender scene as a .gltf. Each time I press play in the PG, I see the updated result.
Thanks for sharing. I currently utilize Substance Painter in my workflow. Blender >> SP >> Babylon.js with a third-party Blender add-on (cost). I was utilizing a Blender add-on for texture painting. This makes me want to go back to that workflow.
This is such a cool idea but havnt gotten it to work (im loading the script into Blender 3.1, pressing play, and then going to the playground mentioned in the Github docs and reloading)… Im not sure whether its something to do with the naming of the gltf, as the playground is looking for one called ‘Toto’, but the script is cycling through temp-names(?)
Hopefully i’ll get it soon (and your little dog too… )
Thanks, can confirm it works fine on Windows. Ill have a look again at whats going on on Mac later, but afaik to view the Blender console on Mac you need to open Blender from the command line (?) so makes debugging scripting stuff a bit more troublesome. Great script, this will make prototyping a lot more fun
Not to sidetrack to much. But on the one macOS machine I keep around I switched to iterm2 and created a shortcut using Raycast, and made sure it is top of the search window Raycast shows. You can use shortkeys as well.
I’ve subsequently made an alias/shortcut to opening blender with the terminal at the same time, the rough steps were (for mac users needing terminal output):
find blender’s binary path in the scripting console using byp.app.binary_path
open the path it gives you in Finder (using ‘go to Folder…’)
make that into an alias and put it on your desktop, and use that icon to open blender with terminal on the side.