Weld and Smooth
Hi All,
I found this script for Weld and Smooth and for some reason it does not work with 3DS max 2014. I get an error "--Unable to covert:"" to type: controller"
If anyone can take a look at it and get it to work properly it would be greatly appreciated.
Thanks!
--Weld and Smooth--- Nicholas O'Leary www.nicholasoleary.com
macroScript WeldAndSmooth category:"Nood" tooltip:"weldAndSmooth" icon:#("standard", 1)
(
rollout WeldAndSmooth "WeldAndSmooth" width:225 height:194
(
spinner faceIDCount_spn "Max face count included" pos:[19,16] width:196 height:16 enabled:true range:[1,1e+007,100000] type:#integer scale:0.1 controller:""
spinner weldDistance_spn "weld distance" pos:[18,43] width:196 height:16 enabled:true range:[1,1e+006,0.01] type:#float scale:0.001 controller:""
spinner smoothingAngle_spn "smoothing angle" pos:[18,70] width:196 height:16 enabled:true range:[0,360,20] type:#float scale:0.1 controller:""
button evaluate_btn "evaluate" pos:[126,162] width:90 height:21
on evaluate_btn pressed do
(
objorig = $ as array
for i = 1 to (poo.count) do
(
vert_array =#()
poo = convertToPoly(objorig[i])
poo.autoSmoothThreshold = faceIDCount_spn.value smoothingAngle_spn.value
vertCount = polyop.getNumVerts poo
for j= 1 to (vertCount) do
(
append vert_array j
)
polyop.weldVertsByThreshold poo vert_array
polyop.setFaceSelection poo #all
poo.EditablePoly.autosmooth ()
print i
)
--catch()
)
)
createDialog WeldAndSmooth 225 85
)
Comments
Help!
Is there any way to get this script not to collapse to edit poly? I would help for scenes with lots of instances.
I appreciate any help!
Thanks,
...
I upgraded Kostadin code. This works only on first instance in the current selection
bga
Thanks barigazy, I'm getting
Thanks barigazy,
I'm getting "--Unknown property:"weldthreshold" in underfined"
Thanks guys you rock!
Thanks guys you rock!
This is not the only error in
This is not the only error in the script. I have made new version.
Tools and Scripts for Autodesk 3dsMax
Hi Miauu, Thanks for the
Hi Miauu,
Thanks for the script!... The Only thing I notice is that the Weld threshold defaults to 1.0 in the dialog box and will not go below 1.0 to like 0.001 any idea why this is happening?
Thanks again.
Eric
.
It happens because I did'n notice that. Fixed.
Tools and Scripts for Autodesk 3dsMax
Hey miauu anyway we could get
Hey miauu
anyway we could get this to not break instances when converting to polly?
I appreciate any help.
Thanks
Eric
Can anyone give me some
Can anyone give me some incite on how to accomplishes this?
I would appreciate any help.
Thanks!
...
Just correct this line
bga