I'm trying to create a small tool for copying blend shape data from one shape to another using python and I've got it working, but I'm trying to make the process completely automated. The only thing that wont work is using python to import a .iff attribute map using an existing file. This is what isn't working:
ctx = cmds.currentCtx()
cmds.artAttrPaintVertexCtx(ctx, e=True, ifl="C:/Users/Brandon/Desktop/TEST/NeckFixer_WeightsMap.iff", ifm="luminance")
ctx is returned as artAttrBlendShapeContext
but gives this error:
line 33: artAttrPaintVertexCtx: Object 'artAttrBlendShapeContext' not found.
Does anyone know what object should be passed to cmds.artAttrPaintVertexCtx or why this doesnt work?
(I've already checked that the path is correct using os.path.isfile)
Your help is greatly appreciated,