Blender Tutorial Introduction to Python Scripting Writing a Script That Makes a Simple 3D Model

///Blender Tutorial Introduction to Python Scripting Writing a Script That Makes a Simple 3D Model

Blender Tutorial Introduction to Python Scripting Writing a Script That Makes a Simple 3D Model

FavoriteLoadingAdd to favorites

This tutorial is an introduction to scripting and it shows how to write scripts that use Blender’s powerful features.

The tutorial starts by showing how to use the interactive Python console to enter single commands. The tutorial shows how to use the built in text editor to create a script, it shows how to write a script that makes a simple model of a monkey robot.

Python is a fully featured object oriented language, it will be a big challenge for a beginner, best of luck.

This is the script that is developed –

import bpy

#body
bpy.ops.mesh.primitive_cube_add()
bpy.ops.transform.resize(value=(1.2, 0.8, 1.5))

#head
bpy.ops.mesh.primitive_monkey_add()
bpy.ops.transform.translate(value=(0, -0.3, 2))

#arms
bpy.ops.mesh.primitive_cylinder_add()
bpy.ops.transform.translate(value=(2, 0, 0))
bpy.ops.transform.resize(value=(0.5, 0.5, 1.5))
bpy.ops.transform.rotate(value=-0.523599, axis=(0, 1, 0))
bpy.ops.mesh.primitive_cylinder_add()
bpy.ops.transform.translate(value=(-2, 0, 0))
bpy.ops.transform.resize(value=(0.5, 0.5, 1.5))
bpy.ops.transform.rotate(value=0.523599, axis=(0, 1, 0))

#legs
bpy.ops.mesh.primitive_cylinder_add()
bpy.ops.transform.translate(value=(0.7, 0, -3.5))
bpy.ops.transform.resize(value=(0.5, 0.5, 2))
bpy.ops.object.duplicate_move(TRANSFORM_OT_translate=)

For more tutorials and resources goto my website –
http://blender.freemovies.co.uk

By |2017-05-01T12:21:06+00:00April 26th, 2017|Programming Video Tutorials, Python Video Tutorials|6 Comments

6 Comments

  1. Sam Pollard April 26, 2017 at 9:20 pm - Reply

    Thank You very much. Very useful.
    Cool use of the Information editor. Way easier than trawling through the API 🙂
    Thanks for sharing your knowledge.

  2. Onald Valenciano April 26, 2017 at 9:25 pm - Reply

    I already watched some of your tutorials and I say your tutorials are great, suitable for beginners who prefer straightforward method. Concise and on-point, where the goal are the simple projects beginners want to create. You know what beginners want to know.

  3. M Wing April 26, 2017 at 9:39 pm - Reply

    Hey Ian! Have not checked in for some time and look! Here you are doing exactly what I need to know! I am diving into Python and became interested into making something for Blender and discovered that Blender has something called, ‘BPY’. I really want to design an add-on fo Blender so I am starting here. Thanks for you time Ian! :O) When setting size, is it Blender units we are talking about?

  4. Kırk Bakire Tapınağı April 26, 2017 at 9:42 pm - Reply

    good tutorial..i want to learn python but blender does not allow 🙂 i am not master on blender .

  5. Mufeed Al-Hashim April 26, 2017 at 9:54 pm - Reply

    thanks for the tutorial.

  6. Cătălin George Feștilă April 26, 2017 at 9:58 pm - Reply

    good iintroduction for python and Blender 3D , I think the next tutorial will be more complex, for example with effects with cameras , twister , smoke , rain, armatures. most of this type of tutorials about python has just introduction and some build mesh and objects. anyway good job.

Leave A Comment

*