I initially tagged this on the end of someone elses thread and then realised that it was potentially hijacking so I have placed this here in it’s own instead…
Firstly for anyone who is a python beginner like me…
‘screens’ is referring to the screen layouts that can be selected on the top header bar, usually this boots up with ‘Default’, i’ve switched to ‘scripting’ which makes it number 4 in the list. Hence the number 4 below.
The ‘areas’ is referring to the various window panels that are shown, the 3d view happens to be the 3rd along so is 2 in the list, i.e. [0, 1, 2]
That means the following line can be written in the console so long as you’re in the scripting scene layout and be able to switch the shading mode to wireframe in the 3dview…
However in the blender python api searching for the ‘viewport_shade’ function shows the location as -
What does the word ‘space’ represent in the brackets? I was expecting you could go something like…
Can anyone shed some light on this?
Also what are ‘screens’ or ‘areas’? I mean are they classes? Which contain lists? Hence the square brackets? I’m floundering here obviously. It’s tricky to translate what i’ve learned about python into practical examples for blender i must admit.
I’m intending to rewrite all this up for people like me so hopefully this will help many others to crack into blender python with these sorts of examples. (In addition to the other practical resources like blendercookie of course)
Sorry for the obviously beginner-like question and long ramble that this has turned into, many thanks for reading this far if you made it!