Discuss Scratch

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


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

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

Jeffalo wrote:

reminds me of browsing scratch via google earth
Nice, 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?

9gr wrote:

wow cool

wvj wrote:

cool
Thanks
LandonHarter
Scratcher
1000+ posts

Getting a Scratcher's message count using a 3D computer graphics software called Blender

Chiroyce wrote:

Jeffalo wrote:

reminds me of browsing scratch via google earth
Nice, 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

LandonHarter wrote:

[View post]

Chiroyce wrote:

Jeffalo wrote:

reminds me of browsing scratch via google earth
Nice, also why is the background tab of the screenshot a very very forbidden website?
. _ .
…Okay, at least the tab name isn't visible.
is it bad that I know the name even if I never used it?

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

mybearworld wrote:

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

mybearworld wrote:

Well, it has a built in python console. GIMP can do the same
Wow 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

Chiroyce wrote:

Jeffalo wrote:

reminds me of browsing scratch via google earth
Nice, also why is the background tab of the screenshot a very very forbidden website?
ah yes nonoword.com (probably not an actual website)
CatsUnited
Scratcher
1000+ posts

Getting a Scratcher's message count using a 3D computer graphics software called Blender

airplanedodge wrote:

Chiroyce wrote:

Jeffalo wrote:

reminds me of browsing scratch via google earth
Nice, also why is the background tab of the screenshot a very very forbidden website?
ah yes nonoword.com (probably not an actual website)
and you're right on that

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

CatsUnited wrote:

airplanedodge wrote:

Chiroyce wrote:

Jeffalo wrote:

reminds me of browsing scratch via google earth
Nice, also why is the background tab of the screenshot a very very forbidden website?
ah yes nonoword.com (probably not an actual website)
and you're right on that

who wants to buy?
oh. JEFFALO COME HERE AND BUY NONOWORD.COM
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

Chiroyce wrote:

[View post]

mybearworld wrote:

Well, it has a built in python console. GIMP can do the same
Wow that's cool
ScratchCatHELLO
Scratcher
1000+ posts

Getting a Scratcher's message count using a 3D computer graphics software called Blender

mybearworld wrote:

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

ScratchCatHELLO wrote:

[View post]

mybearworld wrote:

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
“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 Docs
“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

mybearworld wrote:

Chiroyce wrote:

[View post]

mybearworld wrote:

Well, it has a built in python console. GIMP can do the same
Wow that's cool
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).
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

ninjaMAR wrote:

since when does blender have python?
I used 2.7.9, the latest version is 2.92.0

Powered by DjangoBB