importing skin weightMap files via python

importing skin weightMap files via python

Anonymous
Not applicable
626 Views
0 Replies
Message 1 of 1

importing skin weightMap files via python

Anonymous
Not applicable

Hi All,

 

I've been stuck for a while trying to properly script importing skin weightMap files into my scene via python.

 

When I have a target object - and thru the ui I manually import a weightMap file - the script history keeps showing this mel command:

 

 

ImportSkinWeightMaps;

 

My searches on it keep leading me to the But my searches on this keep leading me to the deformerWeight command.

 

Thing is, there is no example on the documentation as to how to correctly write the syntax. Writing the flags, the path thru trial and error with it didn't work out, plus additional searches keep giving me the hint that I need to use a .xml file for some reason? when all I want to do is import a .weightMap file. (without having to manually pick the file from the dialog box)

 

All I need is the correct syntax (or command) for something like:

 

 

mel.eval("ImportSkinWeightMaps;")

#or

cmds.deformerWeights (p = "path to my .weightMap file", im=True, )

#or

from pymel.core import *
pymel.core.runtime.ImportSkinWeightMaps ( 'targetOject', 'path to .weightMap file')

 

 

Any help would be greatly appreciated.

 

Thanks!

 

0 Likes
627 Views
0 Replies
Replies (0)