Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mathutils.Matrix.LocRotScale.py « examples « python_api « doc - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 016a5002e82a0c588f4e91b24b97ae19d40fc9d2 (plain)
1
2
3
4
5
# Compute local object transformation matrix:
if obj.rotation_mode == 'QUATERNION':
    matrix = mathutils.Matrix.LocRotScale(obj.location, obj.rotation_quaternion, obj.scale)
else:
    matrix = mathutils.Matrix.LocRotScale(obj.location, obj.rotation_euler, obj.scale)