Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Getting a Scratcher's message count using a 3D computer graphics software called Blender
- Chiroyce
-
Scratcher
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
-
Scratcher
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
-
Scratcher
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
wow cool
- wvj
-
Scratcher
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
cool
- Chiroyce
-
Scratcher
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
reminds me of browsing scratch via google earthNice, also why is the background tab of the screenshot a very very forbidden website?
Wait, since Scratch desktop uses Electron, can we do this there as well?
wow cool
coolThanks
- LandonHarter
-
Scratcher
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
. _ .reminds me of browsing scratch via google earthNice, also why is the background tab of the screenshot a very very forbidden website?
…Okay, at least the tab name isn't visible.
- mybearworld
-
Scratcher
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?. _ .reminds me of browsing scratch via google earthNice, also why is the background tab of the screenshot a very very forbidden website?
…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
-
Scratcher
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
Anyways, isn't that pretty much just “running python code in an app that allows python code to be ran”ßNo, it is -
Getting a Scratcher's message count using a 3D computer graphics software called Blender
- mybearworld
-
Scratcher
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
-
Scratcher
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 sameWow that's cool
"Sorry, you have to wait 60 seconds between posts." *internal screaming*
- airplanedodge
-
Scratcher
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)reminds me of browsing scratch via google earthNice, also why is the background tab of the screenshot a very very forbidden website?
- CatsUnited
-
Scratcher
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)reminds me of browsing scratch via google earthNice, also why is the background tab of the screenshot a very very forbidden website?

who wants to buy?
Last edited by CatsUnited (May 12, 2021 15:01:50)
- airplanedodge
-
Scratcher
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)reminds me of browsing scratch via google earthNice, also why is the background tab of the screenshot a very very forbidden website?
who wants to buy?
- gdpr5b78aa4361827f5c2a08d700
-
Scratcher
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
-
Scratcher
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
[View post]Well, it has a built in python console. GIMP can do the sameWow that's cool

- ScratchCatHELLO
-
Scratcher
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
-
Scratcher
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
-
Scratcher
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]Well, it has a built in python console. GIMP can do the sameWow that's cool
- ninjaMAR
-
Scratcher
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
since when does blender have python?
- Chiroyce
-
Scratcher
1000+ posts
Getting a Scratcher's message count using a 3D computer graphics software called Blender
since when does blender have python?I used 2.7.9, the latest version is 2.92.0
- Discussion Forums
- » Advanced Topics
-
» Getting a Scratcher's message count using a 3D computer graphics software called Blender











