Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions release/scripts/mgear/core/deformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ def create_proximity_wrap(
weights_path=None,
weights_filename=None,
smoothInfluences=0,
wrapMode=1,

):
"""
Expand All @@ -328,6 +329,7 @@ def create_proximity_wrap(
deformer_name: Optional name for the deformer. If None, generates from first target geo.
weights_path: Optional path to the weights file directory
weights_filename: Optional filename for the weights (defaults to deformer_name + ".json")
wrapMode : Optional set change the wrap mode of the defromer default Surface "1"

Returns:
The renamed deformer node name
Expand Down Expand Up @@ -374,6 +376,8 @@ def create_proximity_wrap(

cmds.setAttr(f"{deformer_name}.smoothInfluences", smoothInfluences)

cmds.setAttr(f"{deformer_name}.wrapMode", wrapMode)

return deformer_name


Expand Down