Skip to content
Draft
Show file tree
Hide file tree
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: 2 additions & 2 deletions GETOOLS_SOURCE/experimental/PhysicsHair.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ def CreateNHairOnCurve(curve, nucleus): # TODO

def CreateNHairOnSelected(nucleus, *args): # TODO
# Check selected objects
selectedList = Selector.MultipleObjects(2)
selectedList = Selector.MultipleObjects(minimalCount = 2)
if (selectedList == None):
return

curve = None

result = CreateNHairOnCurve(curve, nucleus)
result = CreateNHairOnCurve(curve = curve, nucleus = nucleus)

print(result)

Expand Down
6 changes: 3 additions & 3 deletions GETOOLS_SOURCE/modules/Experimental.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
# Source code: https://github.com/GenEugene/GETools or https://app.gumroad.com/geneugene

import maya.cmds as cmds
# from functools import partial
from functools import partial

from .. import Settings
from ..utils import File
from ..utils import Layers
from ..utils import Selector
# from ..utils import Blendshapes
# from ..experimental import Physics
# from ..experimental import PhysicsHair
from ..experimental import PhysicsHair
from ..experimental import PhysicsParticle


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

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