Hi everyone.
I’m building my rigs with post scripts and one of them is importing ngSkinTools layers from json files.
The thing is that it does not take in consideration the mirror scheme I had set up when doing my skinning
It always keep the defaults settings from a fresh install.
I saved my new scheme as the default one, but everytime I close Maya, it sets it up back to default from install
I tried in my post script with the following lines but with no luck, it does not change anything
config = ngst_api.InfluenceMappingConfig()
config.globs = [
("L_*", "R_*"),
("l_*", "r_*"),
("lf_*", "rt_*"),
("*_lf", "*_rt"),
("*_l", "*_r"), #THIS IS THE ONE I NEED
]
config.use_distance_matching = True
config.use_name_matching = False
ngst_api.import_json(
f'Meshes|{mesh}',
file=source_file_name,
vertex_transfer_mode=VertexTransferMode.vertexId,
influences_mapping_config=config,
)
Does anybody have any idea of how to apply an updated mirror scheme from python script ?
Thanks a lot !