badsblog.blogg.se

Blender guru tutorials
Blender guru tutorials













blender guru tutorials

Vector: the representation of 2D or 3D coordinates.The module mathutils defines several important classes that are used heavily in the rest of the Blender API. These allow your scripts to attach custom information to a scene, that for example the user can adjust through interface elements to control the behaviour of the scripts. bpy.props - functions for defining properties.Also accessible in the Console window via the global variable C. bpy.context - contains settings like the current 3D mode, which objects are selected, and so on.When you write an addon script, it will typically define new operators. And of course they can be invoked from a script. bpy.ops - operators perform the actual functions of Blender these can be attached to hotkeys, menu items and buttons.bpy.types - information about the types of the objects in bpy.data.bpy.data - This is where you find the contents of the current document.

blender guru tutorials

The contents of the bpy module are divided into several submodules, among which are:

blender guru tutorials

As soon as you do this, the cube will jump another step, like before. To make it move again, press UPARROW to bring back the above command, so you can execute it again with ENTER . Were you watching the 3D View when you pressed ENTER ? You should have seen the cube jump to a different position. (Note the doubled parentheses: mathutils.Vector takes a single argument, which is a tuple of X, Y and Z coordinate values.)















Blender guru tutorials