mgear.core.wmap module¶
-
mgear.core.wmap.
export_weights
(deformer, filePath)¶ Export the wmap to a json file
Parameters: - deformer (PyNode or str) – Name or pynode of a deformer with weight map
- filePath (str) – Path to save the file
-
mgear.core.wmap.
export_weights_selected
(filePath=None, *args)¶ Export the wmap to a json file from selected objet
Parameters: filePath (str) – Path to save the file. If None wil pop up file browser
-
mgear.core.wmap.
file_browser
(mode=1)¶ open file browser
Parameters: mode (int, optional) – 0 save mode, 1 load mode Returns: file path Return type: str
-
mgear.core.wmap.
get_weights
(deformer)¶ Get the weight map from a given deformers
It supports multiple objects/weight maps for one sigle deformer
Parameters: deformer (PyNode or str) – Name or pynode of a deformer with weight map Returns: The weights dictionary Return type: dict
-
mgear.core.wmap.
import_weights
(deformer, filePath)¶ Import the wmap from a json file
Parameters: - deformer (PyNode or str) – Name or pynode of a deformer to assign the wmap
- filePath (str) – Path to load the file
-
mgear.core.wmap.
import_weights_selected
(filePath=None, *args)¶ Import the wmap to from json file from selected objet
Parameters: filePath (str) – Path to load the file. If None wil pop up file browser
-
mgear.core.wmap.
set_weights
(deformer, dataWeights)¶ Set the weight map from a given deformers
It supports multiple objects/weight maps for one sigle deformer
Parameters: deformer (PyNode or str) – Name or pynode of a deformer with weight map