def printMatrices(obj, info=None): if not info: info = selection.getObjectName(obj) print("\n----------------", info, "---------------------\n", "local:\n", obj.matrix_local, "\n\nworld:\n", obj.matrix_world, "\n\nparent_inverse:\n", obj.matrix_parent_inverse, "\n\nbasis:\n", obj.matrix_basis)
def printMatrices(obj, info=None): """This function prints the matrices of an object to the screen. :param obj: The object to print the matrices from. :type obj: bpy.types.Object :param info: If True the objects name will be included into the printed info. :type info: bool """ if not info: info = selection.getObjectName(obj) print("\n----------------", info, "---------------------\n", "local:\n", obj.matrix_local, "\n\nworld:\n", obj.matrix_world, "\n\nparent_inverse:\n", obj.matrix_parent_inverse, "\n\nbasis:\n", obj.matrix_basis)