una-dinosauria/3d-pose-baseline

How to import maya_skeleton.py to maya?

scucszw opened this issue · 1 comments

I have reached the fifth step,open maya and import maya/maya_skeleton.py
I added python file in the maya script editor but nothing happened.
This is where I made changes,Can someone tell me the correct way?

openpose_images = "/D:/project/30posebaseline/3d-pose-baseline/path/to/frames"

threed_pose_baseline = "/D:/project/30posebaseline/3d-pose-baseline/"

input_json_path = [os.path.join(threed_pose_baseline, "maya/{0}.json".format(_data)) for _data in ["3d_data.json", "2d_data.json"]]

I got it,you must call main method in maya.I hope this can help someone like me

import maya_skeleton
reload(maya_skeleton)
maya_skeleton.main()