1
General CG Discussion / Re: Scripting
« on: 2023-09-29, 08:54:59 »
Hi,
just check max script help and search the web. http://www.scriptspot.com and https://forums.cgsociety.org are good resources for script stuff if you are stuck.
Although thisis has been the "I need help" section regarding Corona, here is a quickly written script as a start for you. It converts to Poly, adds a vertex weld modifier with a threshold of your choice (thres) and then collapses the stack:
Good Luck
just check max script help and search the web. http://www.scriptspot.com and https://forums.cgsociety.org are good resources for script stuff if you are stuck.
Although this
Code: [Select]
thres=0.01 -- vertex weld threshold
for o in $selection do (
try (
format "Processing object '%1'\n" o.name
ConvertTo o Editable_Poly
addmodifier o (vertexweld())
o.vertexweld.threshold=thres
maxOps.CollapseNodeTo o 1 true
)
catch (
format "Error processing object '%1'\n" o.name
)
)
Good Luck