Skip to content

Commit 2025540

Browse files
committed
add nhair experimental button
1 parent 9e6a242 commit 2025540

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

GETOOLS_SOURCE/experimental/PhysicsHair.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ def CreateNHairOnCurve(curve, nucleus): # TODO
105105

106106
def CreateNHairOnSelected(nucleus, *args): # TODO
107107
# Check selected objects
108-
selectedList = Selector.MultipleObjects(2)
108+
selectedList = Selector.MultipleObjects(minimalCount = 2)
109109
if (selectedList == None):
110110
return
111111

112112
curve = None
113113

114-
result = CreateNHairOnCurve(curve, nucleus)
114+
result = CreateNHairOnCurve(curve = curve, nucleus = nucleus)
115115

116116
print(result)
117117

GETOOLS_SOURCE/modules/Experimental.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# Source code: https://github.com/GenEugene/GETools or https://app.gumroad.com/geneugene
2323

2424
import maya.cmds as cmds
25-
# from functools import partial
25+
from functools import partial
2626

2727
from .. import Settings
2828
from ..modules import Options
@@ -31,7 +31,7 @@
3131
from ..utils import Selector
3232
# from ..utils import Blendshapes
3333
# from ..experimental import Physics
34-
# from ..experimental import PhysicsHair
34+
from ..experimental import PhysicsHair
3535
from ..experimental import PhysicsParticle
3636

3737

@@ -65,7 +65,7 @@ def UICreate(self, layoutMain):
6565
cmds.button(label = "P Aim", command = PhysicsParticle.CreateAimOnSelected)
6666
cmds.button(label = "P Combo", command = PhysicsParticle.CreateComboOnSelected)
6767
# cmds.button(label = "**P Chain", command = PhysicsParticle.CreateAimChainOnSelected)
68-
# cmds.button(label = "Hair", command = partial(PhysicsHair.CreateNHairOnSelected, None))
68+
cmds.button(label = "N Hair", command = partial(PhysicsHair.CreateNHairOnSelected, None))
6969

7070
countOffsets = 2
7171
cmds.gridLayout(parent = layoutMain, numberOfColumns = countOffsets, cellWidth = Settings.windowWidthMargin / countOffsets, cellHeight = Settings.lineHeight)

0 commit comments

Comments
 (0)