mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 01:09:50 +00:00
Maxscript selection clear fix
This commit is contained in:
parent
2cd74c193f
commit
4d4a885f7a
15 changed files with 19 additions and 0 deletions
|
@ -56,6 +56,7 @@ fn runNelMaxExport inputMaxFile =
|
|||
|
||||
-- unselect
|
||||
max select none
|
||||
clearSelection()
|
||||
|
||||
-- Exported object count
|
||||
exported = 0
|
||||
|
|
|
@ -36,6 +36,7 @@ fn runNelMaxExport inputMaxFile =
|
|||
|
||||
-- Select all collision mesh
|
||||
max select none
|
||||
clearSelection()
|
||||
for m in geometry do
|
||||
(
|
||||
if (isToBeExported m) == true then
|
||||
|
|
|
@ -61,6 +61,7 @@ fn runNelMaxExport inputMaxFile =
|
|||
|
||||
-- unselect
|
||||
max select none
|
||||
clearSelection()
|
||||
|
||||
-- Exported object count
|
||||
exported = 0
|
||||
|
@ -109,6 +110,7 @@ fn runNelMaxExport inputMaxFile =
|
|||
(
|
||||
-- Select none
|
||||
max select none
|
||||
clearSelection()
|
||||
|
||||
-- Select all node in this ig
|
||||
for node in geometry do
|
||||
|
|
|
@ -10,6 +10,7 @@ fn runNelMaxExport inputMaxFile =
|
|||
|
||||
-- Select none
|
||||
max select none
|
||||
clearSelection()
|
||||
|
||||
-- Select all PACS primitives
|
||||
for i in geometry do
|
||||
|
|
|
@ -199,6 +199,7 @@ fn runNelMaxExportSub inputMaxFile retryCount =
|
|||
|
||||
-- unselect
|
||||
max select none
|
||||
clearSelection()
|
||||
|
||||
-- Exported object count
|
||||
exported = 0
|
||||
|
|
|
@ -46,6 +46,7 @@ fn runNelMaxExport inputMaxFile =
|
|||
|
||||
-- unselect
|
||||
max select none
|
||||
clearSelection()
|
||||
|
||||
-- Exported object count
|
||||
exported = 0
|
||||
|
|
|
@ -40,6 +40,7 @@ fn runNelMaxExport inputMaxFile =
|
|||
|
||||
-- Select none
|
||||
max select none
|
||||
clearSelection()
|
||||
|
||||
-- Found it ?
|
||||
find = false
|
||||
|
|
|
@ -122,6 +122,7 @@ fn runNelMaxExport inputMaxFile =
|
|||
|
||||
-- unselect
|
||||
max select none
|
||||
clearSelection()
|
||||
|
||||
-- Exported object count
|
||||
exported = 0
|
||||
|
|
|
@ -127,6 +127,7 @@ fn runNelMaxExport inputMaxFile =
|
|||
|
||||
-- unselect
|
||||
max select none
|
||||
clearSelection()
|
||||
|
||||
-- Exported object count
|
||||
exported = 0
|
||||
|
@ -175,6 +176,7 @@ fn runNelMaxExport inputMaxFile =
|
|||
(
|
||||
-- Select none
|
||||
max select none
|
||||
clearSelection()
|
||||
|
||||
-- Select all node in this ig
|
||||
for node in geometry do
|
||||
|
|
|
@ -228,6 +228,7 @@ fn exportCollisionsFromZone outputNelDir filename =
|
|||
(
|
||||
-- Select all collision mesh
|
||||
max select none
|
||||
clearSelection()
|
||||
for m in geometry do
|
||||
(
|
||||
if (isToBeExportedCollision m) == true then
|
||||
|
@ -311,6 +312,7 @@ fn exportInstanceGroupFromZone inputFile outputPath igName transitionZone cellSi
|
|||
|
||||
-- unselect
|
||||
max select none
|
||||
clearSelection()
|
||||
|
||||
-- Exported object count
|
||||
exported = 0
|
||||
|
@ -372,6 +374,7 @@ fn exportInstanceGroupFromZone inputFile outputPath igName transitionZone cellSi
|
|||
(
|
||||
-- Select none
|
||||
max select none
|
||||
clearSelection()
|
||||
|
||||
for node in objects where classOf node == XRefObject do
|
||||
(
|
||||
|
|
|
@ -76,6 +76,7 @@ fn runNelMaxExport inputMaxFile =
|
|||
|
||||
-- Select none
|
||||
max select none
|
||||
clearSelection()
|
||||
|
||||
-- Select all PACS primitives
|
||||
for i in geometry do
|
||||
|
|
|
@ -102,6 +102,7 @@ fn runNelMaxExport inputMaxFile =
|
|||
|
||||
-- Select all collision mesh
|
||||
max select none
|
||||
clearSelection()
|
||||
for m in geometry do
|
||||
(
|
||||
if (isToBeExported m) == true then
|
||||
|
|
|
@ -265,6 +265,7 @@ fn runNelMaxExportSub inputMaxFile retryCount =
|
|||
|
||||
-- unselect
|
||||
max select none
|
||||
clearSelection()
|
||||
|
||||
-- Exported object count
|
||||
exported = 0
|
||||
|
|
|
@ -112,6 +112,7 @@ fn runNelMaxExport inputMaxFile =
|
|||
|
||||
-- unselect
|
||||
max select none
|
||||
clearSelection()
|
||||
|
||||
-- Exported object count
|
||||
exported = 0
|
||||
|
|
|
@ -103,6 +103,7 @@ fn runNelMaxExport inputMaxFile =
|
|||
|
||||
-- Select none
|
||||
max select none
|
||||
clearSelection()
|
||||
|
||||
-- Found it ?
|
||||
find = false
|
||||
|
|
Loading…
Reference in a new issue