コード例 #1
0
ファイル: blender.py プロジェクト: Hacks4ROS-forks/phobos
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)
コード例 #2
0
ファイル: blender.py プロジェクト: liyingzhi/phobos
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)
コード例 #3
0
ファイル: blender.py プロジェクト: kavonszadkowski/phobos
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)