sorry i post code error =)))
change this
modPanel.addModToSelection (Turn_to_Mesh ()) ui:on
$Box02.modifiers[#Turn_to_Mesh].selectionConversion = 2
modPanel.addModToSelection (Edit_Mesh ()) ui:on
to
modPanel.addModToSelection (Turn_to_Mesh ()) ui:on
$.modifiers[#Turn_to_Mesh].selectionConversion = 2
$.modifiers[#Turn_to_Mesh].selectionLevel = 3
modPanel.addModToSelection (Edit_Mesh ()) ui:on
2LoOp, your script works fine with some shapes and doesn’t work with other (like a simple poly cube).
With this shape it works! :shrug:
@ neox
sorry.
i totally misunderstood you, too. i thought you were talking about the whole thread.
my english is also very “eingeschlafen”
@ 2LoOp
thanks for joining.
@ all
i am really glad that this thread has so many response. keep it up.
Hi everybody!! Its really nice from you that you are writing scripts like this! I think many maxers appreciate it!
Regarding max´s display of SubDs I read somewhere that max actually doesnt have true SubD and algorithms are very old and slow (since max 2.5) compared to competition so thats probably the reason why model wires looks like this :thumbsdow (just my opinion) I know shit about tech. aspect of them so correct me if Im wrong.
However I ve found max´s poly tools are the great in terms of workflow so keep trying guys it could be definetely huge improvement!!!
Well, its time to shut up…
Just wanted to say thank you
Neox: Ok cool! Dan is dat ook weer uit de wereld
Libor: check this thread for some more info on SubD’s very interresting -> Subd’s
2loop: Some general tips, don’t use “$” but “selection” or “selection[1]” it is easy then to loop trough a selection, with $ it would be hard! Look it up in the manual!
Cheers JHN
so this is final version on today
separate thanks to googlo for his “Smooth Polylines Thing”
whence i have stolen several things
JHN i never before write scripts :rolleyes:
tnx for tips
===start code===
— LightWave Smooth Style For 3ds Max5 by 2LoOp <2lp@nm.ru> –
— Version 1.0 beta –
— Put this script to the 3dsmax5\UI\Macroscripts folder or just —
— drag into max viewport, after restart max and go to costomize —
— menu and under category lptools you find LWSmooth —
macroScript LWSmooth
category:“lptools”
tooltip:“LWSmooth”
buttontext:“LWSmooth”
(
rollout LWSmooth “LWSmooth Control” width:162 height:61
(
checkButton ckb2 “Smooth” pos:[99,15] width:48 height:16
checkbox chk2 “Editable?” pos:[65,34] width:71 height:21
spinner spn1 “Interations:” pos:[20,16] width:75 height:16 range:[0,5,3] type:#integer
on ckb2 changed state do
(
if state then
(
try
(
polyOp.setEdgeSelection $ #All;update $
modPanel.addModToSelection (Edit_Mesh name:"LWSmooth") ui:on
subobjectLevel = 2
$.iterations = spn1.value
$.surfSubdivide = on
max select invert
meshOps.invisibleEdge $.modifiers[1]
max select none
modPanel.setCurrentObject $.baseObject
subobjectLevel = 0
$.showCage = off
showendresult=true
)
catch( messageBox "Work only with Editable Poly" )
)
else
(
try(
deleteModifier $ $.modifiers["LWSmooth"]
$.surfSubdivide = off
showendresult=false
)
catch ( messageBox "Nothing to off")
)
)
on chk2 changed state do
if state then
($.showCage = on)
else
($.showCage = off)
)
LW=newRolloutFloater “LWSmooth” 162 91
addRollout LWSmooth LW
)
===end code===
Originally posted by JHN
Neox: Ok cool! Dan is dat ook weer uit de wereld
hehe i hope so
Any new updates? I just found this and I find it really neat, and possibly greatly useful. If its true, what LFShade said, that it would have to be a .dll, I wish someone could write it anyways, nice work on the scripting people!