Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Getting a Scratcher's message count using a 3D computer graphics software called Blender
- Chiroyce
-
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
Getting a Scratcher's message count using a 3D computer graphics software called Blender
Blender is a free and open-source 3D computer graphics software toolset used for creating animated films, visual effects, art, 3D printed models, motion graphics, interactive 3D applications, virtual reality, and computer games
(source)
Yes, you read title right, I made a 3D computer graphics software get my Scratch message count. It's quite simple you know.
- Step 1 - open Blender and switch to the Python Console
- Step 2 - type in this code
import requests
r = requests.get("https://api.scratch.mit.edu/users/Chiroyce/message/count") # replace 'Chiroyce' with your username
r = r.json()
print(r)

There you have the result! So the next time you're making something in Blender, and you want to check your message count, just switch to the python console and type this

Also if it says ‘module requests not found’, just type in this code and try again.
import os
os.system("pip install requests")
Last edited by Chiroyce (May 12, 2021 09:02:02)
- Jeffalo
-
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
reminds me of browsing scratch via google earth
- 9gr
-
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
wow cool
- wvj
-
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
cool
- Chiroyce
-
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
browsing scratch via google earthNice, also why is the background tab of the screenshot a very very forbidden website? reminds me of
Wait, since Scratch desktop uses Electron, can we do this there as well?
wow cool
Thanks cool
- LandonHarter
-
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
. _ .browsing scratch via google earthNice, also why is the background tab of the screenshot a very very forbidden website? reminds me of
…Okay, at least the tab name isn't visible.
- mybearworld
-
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
[View post]is it bad that I know the name even if I never used it?. _ .browsing scratch via google earthNice, also why is the background tab of the screenshot a very very forbidden website? reminds me of
…Okay, at least the tab name isn't visible.
Anyways, isn't that pretty much just “running python code in an app that allows python code to be ran”ß
- Chiroyce
-
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
No, it is - Anyways, isn't that pretty much just “running python code in an app that allows python code to be ran”ß
Getting a Scratcher's message count using a 3D computer graphics software called Blender
- mybearworld
-
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
Well, it has a built in python console. GIMP can do the same
- Chiroyce
-
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
Wow that's cool Well, it has a built in python console. GIMP can do the same
"Sorry, you have to wait 60 seconds between posts." *internal screaming*
- airplanedodge
-
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
ah yes nonoword.com (probably not an actual website)browsing scratch via google earthNice, also why is the background tab of the screenshot a very very forbidden website? reminds me of
- CatsUnited
-
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
and you're right on thatah yes nonoword.com (probably not an actual website)browsing scratch via google earthNice, also why is the background tab of the screenshot a very very forbidden website? reminds me of

who wants to buy?
Last edited by CatsUnited (May 12, 2021 15:01:50)
- airplanedodge
-
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
oh. JEFFALO COME HERE AND BUY NONOWORD.COMand you're right on thatah yes nonoword.com (probably not an actual website)browsing scratch via google earthNice, also why is the background tab of the screenshot a very very forbidden website? reminds me of
who wants to buy?
- gdpr5b78aa4361827f5c2a08d700
-
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
it's really helpful how on windoze computers we have this thing called having multiple windows open at once!!11!11!1
- mybearworld
-
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
[View post]Wow that's cool Well, it has a built in python console. GIMP can do the same

- ScratchCatHELLO
-
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
Well, it has a built in python console. GIMP can do the same
why
does GIMP
have a python console??????
so this is why I don't know how to draw a circle in gimp. it's not that because I'm bad at using apps, it's that GIMP is overly complex
- mybearworld
-
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
[View post]“Die Python-Fu-Konsole ist ein Dialogfenster, in dem eine „Python-Shell“ läuft (ein Pythoninterpreter in interaktivem Modus). Die Konsole ist so voreingestellt, dass Sie die internen Routinen der GIMP-Bibliothek libgimp verwenden können.” - German GIMP DocsWell, it has a built in python console. GIMP can do the same
why
does GIMP
have a python console??????
so this is why I don't know how to draw a circle in gimp. it's not that because I'm bad at using apps, it's that GIMP is overly complex
“The Python-Fu-Console is a dialog window, with that you can run a ”Python shell“ (a Python interpreter that is interactive.) The console is preset so you can use the intern routines of the GIMP library libgimp.” - German GIMP Docs but I translated it
- Maximouse
-
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
In Python 2 the function is urllib2.urlopen, but it didn't work when I tried to use it (there was a SSL certificate error).[View post]Wow that's cool Well, it has a built in python console. GIMP can do the same
- ninjaMAR
-
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
since when does blender have python?
- Chiroyce
-
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
I used 2.7.9, the latest version is 2.92.0 since when does blender have python?
- Discussion Forums
- » Advanced Topics
-
» Getting a Scratcher's message count using a 3D computer graphics software called Blender