Discuss Scratch

origamiX
Scratcher
5 posts

sb3 to py file converter??

Hi, I'm origamiX! I am learning python right now and I could an sb3 to python file converter if it exists. if you know anything, please let me know.
tritoon
Scratcher
40 posts

sb3 to py file converter??

You could convert the project to javascript using leonardjs then convert that to python using J2Spy
The_Imaginarium
Scratcher
1000+ posts

sb3 to py file converter??

I don't think so
There's a Scratch to Javascript but I don't think Python
idkhow2type
Scratcher
100+ posts

sb3 to py file converter??

tritoon wrote:

You could convert the project to javascript using leonardjs then convert that to python using J2Spy
im pretty sure js2py is meant for nodejs, not the web so it wont work
StampDanFan
Scratcher
100+ posts

sb3 to py file converter??

origamiX wrote:

Hi, I'm origamiX! I am learning python right now and I could an sb3 to python file converter if it exists. if you know anything, please let me know.
I'm not sure that would exist, as python and scratch are completely different types of languages (if you would even consider scratch as a fully-fledged programming language), and that scratch is more based towards more beginner-friendly concepts, while python is more low-level.

(next line based off of speculation)
The reason Scratch can be “compiled” into JS is that scratch was based off of the web, and so uses js in a sense already.

But back to python/scratch, you would have to use some sort of multithreading/asyncio module, and a graphics library, as python has no built-in capability of this.

Of course, someone may have created one specialized for tkinter, pygame, or pyglet (python graphics libraries),
but, as of now, I think that's probably infeasible that it exists.

Sorry

Powered by DjangoBB