Is there a way to use command line to mirror the skin weight without the UI?

72 views
Skip to first unread message

Danny Soh

unread,
Jul 18, 2020, 12:55:32 AM7/18/20
to ngSkinTools user list
Hi there,
I am trying out the ngSkinTools 2.0.5
I want to mirror the skin weight of multiple meshs.
So I try use your mirror tool with command line, but I could not get it to work.
My python is not good, maybe I am doing the wrong thing.
This is the command that I wrote:

from ngSkinTools2.api import mirror
from ngSkinTools2 import api as ngst_api
ngst_api
.InfluenceMappingConfig.globs = [('*_L*','*_R*')]
oSC
= pm.PyNode('skinCluster1')
mirrorNow
= mirror.Mirror(oSC)
mirrorOpt
= mirror.MirrorOptions()
mirrorNow
.mirror(mirrorOpt)

I am getting this error.
# Error: AttributeError: file C:\ProgramData\Autodesk\ApplicationPlugins\ngskintools2\Contents\scripts\ngSkinTools2\api\plugin.py line 10: 'module' object has no attribute 'ngst2Layers' #



Reply all
Reply to author
Forward
0 new messages