Featured post

new redirect for blender.org bpy docs.

http://www.blender.org/api/blender_python_api_current/ As of 10/11 november 2015 we can now link to the current api docs and not be worr...

Showing posts with label coordinate. Show all posts
Showing posts with label coordinate. Show all posts

March 14, 2013

world coordinates from local coordinates

you could make it a sequence of assignments
om = object_matrix
lc = local_coordinate
world_coordinate = om * lc
you'll have something like this:

import bpy

this_object = bpy.data.objects['Cube']

om = this_object.matrix_world
lc = this_object.data.vertices[1].co
world_coordinate = om * lc

print(world_coordinate)