Is there any problems in this code??
- Code: Select all
import bpy
import bpy_extras.object_utils
import sys
import os
import math
import numpy as np
import glob
import time
import random
from os.path import join as PathJoin
cube = bpy.data.objects["Cube"]
cube.select = True
bpy.ops.object.delete()
cube.select = False
current_dir = os.getcwd()
full_path_to_dae = PathJoin(current_dir, "Models", "dae_human3.dae")
bpy.ops.wm.collada_import(filepath=full_path_to_dae)
full_path_to_bvh = PathJoin(current_dir, "cmuconvert_fix", "fix_01_01.bvh")
bpy.ops.mcp.load_and_retarget(filepath=full_path_to_bvh)