Integrating latest 47acbe8

This commit is contained in:
alexpete
2021-03-25 13:57:57 -07:00
parent 448c549698
commit 75dc720198
10312 changed files with 2711566 additions and 671451 deletions
+13
View File
@@ -0,0 +1,13 @@
max utility mode
UtilityPanel.OpenUtility CryEngine_2_Exporter
for obj in selection do
(
ExprtArr = csexport.export.get_node_list()
for x = 1 to ExprtArr.count do
(
if ExprtArr[x] == obj then deleteItem ExprtArr x
)
append ExprtArr obj
csexport.export.set_node_list ExprtArr
)
max modify mode
+12
View File
@@ -0,0 +1,12 @@
-------------------------Limited Edge Loop---------------------------
if CryModelling == undefined then
(
FileIn (BuildPathFull_crytools + "Tools\\maxscript\\CryModelling.ms")
)
case subobjectLevel of
(
1: CryModelling.SelVertLoop()
2: CryModelling.SelLimELoop ()
4: CryModelling.SelPolyLoop()
)
+11
View File
@@ -0,0 +1,11 @@
-------------------------Limited Edge Ring---------------------------
if CryModelling == undefined then
(
FileIn (BuildPathFull_crytools + "Tools\\maxscript\\CryModelling.ms")
)
case subobjectLevel of
(
1: CryModelling.SelVertRing()
2: CryModelling.SelLimERing()
)
+7
View File
@@ -0,0 +1,7 @@
-------------------------Limited Poly Loop------------------------------
if CryModelling == undefined then
(
FileIn (BuildPathFull_crytools + "Tools\\maxscript\\CryModelling.ms")
)
CryModelling.SelPolyLoop()
+7
View File
@@ -0,0 +1,7 @@
-------------------------Limited Vert Loop----------------------------
if CryModelling == undefined then
(
FileIn (BuildPathFull_crytools + "Tools\\maxscript\\CryModelling.ms")
)
CryModelling.SelVertLoop()
+7
View File
@@ -0,0 +1,7 @@
-------------------------Limited Vert Ring------------------------------
if CryModelling == undefined then
(
FileIn (BuildPathFull_crytools + "Tools\\maxscript\\CryModelling.ms")
)
CryModelling.SelVertRing()
@@ -0,0 +1 @@
$.modifiers[#unwrap_uvw].unwrap2.ScaleSelectedCenter 0.001 1
@@ -0,0 +1 @@
$.modifiers[#unwrap_uvw].unwrap2.ScaleSelectedCenter 0.001 2
+1
View File
@@ -0,0 +1 @@
$.modifiers[#unwrap_uvw].unwrap2.ScaleSelectedCenter 0.001 0
+5
View File
@@ -0,0 +1,5 @@
-- centers the pivot of all selected objects (locally per object)
for obj in selection do
(
CenterPivot obj
)
@@ -0,0 +1,8 @@
case getRefCoordSys() of
(
#local: setRefCoordSys #hybrid
#hybrid: setRefCoordSys #screen
#screen: setRefCoordSys #world
#world: setRefCoordSys #parent
#parent: setRefCoordSys #local
)
+8
View File
@@ -0,0 +1,8 @@
try
(
(crytools.retrieveFn "collapseVerts()")()
)
catch
(
print "error."
)
+3
View File
@@ -0,0 +1,3 @@
max utility mode
UtilityPanel.OpenUtility CryEngine_2_Exporter
csexport.export.export_anim()
+3
View File
@@ -0,0 +1,3 @@
max utility mode
UtilityPanel.OpenUtility CryEngine_2_Exporter
csexport.export.export_nodes()
+8
View File
@@ -0,0 +1,8 @@
if $.preserveUVs == true then
(
$.preserveUVs = false
)
else
(
$.preserveUVs = true
)
@@ -0,0 +1,4 @@
ResetXForm $
print ($.name + " xforms reset")
modPanel.setCurrentObject $.baseObject
maxOps.CollapseNode $ off
+22
View File
@@ -0,0 +1,22 @@
------Display Vertex Alpha------
for obj in selection do
(
if obj.showVertexColors == false then
(
obj.vertexColorType = #alpha
obj.showVertexColors = true
)
else
(
if obj.vertexColorType ==#color then
(
obj.vertexColorType = #alpha
obj.showVertexColors = false
obj.showVertexColors = true
)
else
(
obj.showVertexColors = false
)
)
)
@@ -0,0 +1,22 @@
------Display Vertex Colors-------
for obj in selection do
(
if obj.showVertexColors == false then
(
obj.vertexColorType = #color
obj.showVertexColors = true
)
else
(
if obj.vertexColorType ==#alpha then
(
obj.vertexColorType = #color
obj.showVertexColors = false
obj.showVertexColors = true
)
else
(
obj.showVertexColors = false
)
)
)