0
$\begingroup$

Modeling polygons in blender using mouse and keyboard is relatively easy, but it takes a a lot of time. I would like to know if I can sculpt/model/texture/paint/move/animate objects in blender using only the python language with a lower interaction with the mouse. Do you have some kind of how to and tutorials? Thanks.

$\endgroup$

closed as too broad by David Dec 16 '15 at 3:26

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

4
$\begingroup$

You will have to be more specific because the tools in blender should be sufficient without having to know python.

That being said there is nothing you cannot do in blender using python.

If you drag down the top bar of blender (the line slightly below "File", "Render" etc), you will notice it reveals a window.

Do some actions in blender, and you will see their equivalent python commands. Use these to get started. Good luck!

$\endgroup$
  • 4
    $\begingroup$ Not true: there are couple things you can't do with python, because custom data of operators or events is not (fully) exposed to python. Examples: tablet pressure is not exposed (or was, I believe it is since this week), TIMER events don't tell you which timer fired the event, knife cut operator relies on custom data which you can't pass to the operator (there are bmesh ops for this however, but it's usually no high level API), emulate brush strokes (you can't fake events)... $\endgroup$ – CoDEmanX Sep 25 '14 at 2:08
  • $\begingroup$ Hello. For me it's very useful to learn how to use python to create an animation from start to finish. Do you have some kind of tutorial ? $\endgroup$ – Marietto Sep 25 '14 at 8:26
  • $\begingroup$ @CoDEmanX LIES! You can do all of those things. For example, you could include a screen grab from an external python library. Then do some OpenCV, parse out the screen grab, and determine the state of the application. Sure it would be slow. However there is one thing that python can't do, and that is import curly braces. You have to use an external C library. $\endgroup$ – beiller Sep 25 '14 at 14:16
  • $\begingroup$ I was talking about Blender Python API, not what could be a theoretical workaround, and come on, screen grabbing and OpenCV is not very realistic, nor determistic. Braces are no problem however: python.org/doc/humor/… | pythonb.org $\endgroup$ – CoDEmanX Sep 26 '14 at 22:13
  • $\begingroup$ "there is nothing you cannot do in blender using python." Can you build a physical house? :P (I know you mean "there's nothing you can do in Blender that you can't do with Python") $\endgroup$ – someonewithpc Aug 30 '15 at 21:53
0
$\begingroup$

While it is possible to use Python to enhance or automate mesh design, it's a good idea to familiarize yourself with what already exists and start learning the API only if nothing meets your needs.

Blender has a lot of great add-ons already available, and the Blender API is not the easiest thing to learn. It's not unapproachable! Don't be discouraged. Just don't spend time on it unless you really need to because it's an investment. While you're programming, you probably won't be making art, and there's no way for you to know ahead of time how long that will take as you learn.

If you're looking to fully automate the creation of meshes, then unless everything you plan on creating can be described entirely with math and logic, you won't do it. Think about that carefully because unless you are familiar with advanced math (trigonometry, calculus, linear algebra, differential equations), you will probably find that your add-on's capabilities will be very specific and limited.

On the other hand, if you have an idea for a way that your computer can help you to make meshes yourself (a tool, an operation on faces, edges, vertices, loops, UV, textures, etc) then it may be worth your while to learn the part of the API that you need. There's really no reason to become proficient with everything in the API unless you plan on offering your services to develop plugins for others.

Remember, your computer is only a calculator.

$\endgroup$
  • $\begingroup$ user2813810 : I think that I've understood your point. But what to say about HTML 5 + WebGL, then ? I see that with these languages can be reached good results doing 3D animations. Using this way what's the most important part to learn ? programming or the artistic one ? $\endgroup$ – Marietto Sep 25 '14 at 12:30
  • $\begingroup$ Which is more important depends upon the specific use case, so that's a meaningless question in the general sense. Modelling expediency grows with experience, so if a person's goal is to make art and they have little experience, then their best choice is to practice. There are already parametric modelling tools available, so it only makes sense to make a new one if there is a specific programming goal in mind. The question pertains to using Blender for art, therefore it does not pertain to a specific programming goal. $\endgroup$ – user2813810 Jan 5 '15 at 12:04

Not the answer you're looking for? Browse other questions tagged or ask your own question.