Page MenuHome

matrix_local of a child object with wrong orientation
Closed, ArchivedPublic

Description

--- Operating System, Graphics card ---
Mac OsX macbookpro

--- Blender version with error, and version that worked ---
2.67b

--- Short description of error ---
If you set a parent child relationship between 2 objects the matrix_local is wrong, because has wrong orientation.

--- Steps for others to reproduce the error (preferably based on attached .blend file) ---
on the attached .blend check left wing and fuselage.



Event Timeline

Can you explain why you think it's wrong? I don't see anything unusual.

According to the documentation, "matrix_local" is the "Parent relative transformation matrix".

http://www.blender.org/documentation/blender_python_api_2_67_1/bpy.types.Object.html#bpy.types.Object.matrix_local

You need to provide some evidance this is wrong, I checked your file,

# in the python console:

# Select 'LeftWing'
matrix = C.object.parent.matrix_world * C.object.matrix_local
# Add a new empty object
C.object.matrix_world = matrix
# Now the empty is placed at the origin and orientation of LeftWing

closing.

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Archived.Jul 6 2013, 10:19 AM