Skip to content

Commit 09ff316

Browse files
committed
add nhair experimental button
1 parent e80ad2d commit 09ff316

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,15 +22,15 @@
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 ..utils import File
2929
from ..utils import Layers
3030
from ..utils import Selector
3131
# from ..utils import Blendshapes
3232
# from ..experimental import Physics
33-
# from ..experimental import PhysicsHair
33+
from ..experimental import PhysicsHair
3434
from ..experimental import PhysicsParticle
3535

3636

@@ -69,7 +69,7 @@ def UICreate(self, layoutMain):
6969
cmds.button(label = "P Aim", command = PhysicsParticle.CreateAimOnSelected)
7070
cmds.button(label = "P Combo", command = PhysicsParticle.CreateComboOnSelected)
7171
# cmds.button(label = "**P Chain", command = PhysicsParticle.CreateAimChainOnSelected)
72-
# cmds.button(label = "Hair", command = partial(PhysicsHair.CreateNHairOnSelected, None))
72+
cmds.button(label = "N Hair", command = partial(PhysicsHair.CreateNHairOnSelected, None))
7373

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

0 commit comments

Comments
 (0)