This question already has an answer here:
- Workflow for developing add-on/script 4 answers
Blender is said to have perfect Python scripting capabilities. I just cannot find an environment, where I could try it all. Can you give an advise for the noob?
I have a problem with defining an environment for python coding. Once I complained about inability to use keys to select the current command line the command line or even delete it, IRC advised that command line is bad, especially because I also should not define any functions in it. I should better use the Text Editor instead.
However, I have discovered that I cannot run the Text Editor-defined scripts in the command line. Basically, I should forget about the command line and do everything in the Text Editor. Fortunately, it has the Run Script button. However, it is very boring to save every script before running. I better used external editor if I need to save the file before running it anyway. It also does not display me the errors. How can I program anything without seeing the errors. It says that my error msg was printed somewhere into unknown console. I came back to the command line but its view is too tiny. Can I make it in another window to switch easily between the 3D scene and the pycommand line? Probably, you have a better advise to make the operational python environment.
I hoped that I can store the successul lines of code in external editor and fiddler them into the console. But the following lines
for o in D.objects: o.select = True ; bpy.ops.object.delete() earth = bpy.ops.mesh.primitive_uv_sphere_add()
succeed only if I paste them one-by-one and fail if I paste them two at once.