Hi Spad,
Would you be able to post a screen grab of your ‘perfect quality box’? It’s still not clear to me what you are trying to do.
gladly!
here is an example of what the problem was.
Uploaded with ImageShack.us
the side boxes have been filleted with my script, the mid one is chamfer box.
i have applied hdri and some reflection, just to be more visible what i m trying to show you.
i have seen the videos and try out to make it but nothing…
i m just getting errors… 🙁
i did a for loop, just like the example and my code inside…
still nothing… don t know what to do…
I’m sorry, but I still don’t get what you are trying to achieve. 🙁
i need to run once on each obj of my selection the following script:
macros.run “Modifier Stack” “Convert_to_Poly”
subobjectLevel = 2
actionMan.executeAction 0 “40021”
$.EditablePoly.Remove ()
subobjectLevel = 1
actionMan.executeAction 0 “40021”
$.weldThreshold = 0.01
$.EditablePoly.weldFlaggedVertices ()
subobjectLevel = 2
actionMan.executeAction 0 “40021”
$.edgeChamfer = 0.1
$.edgeChamferSegments = 3
$.EditablePoly.buttonOp #Chamfer
subobjectLevel = 4
$.EditablePoly.SetSelection #Face #{1…6}
$.insetAmount = 0.05
$.EditablePoly.buttonOp #Inset
$.EditablePoly.buttonOp #Inset
actionMan.executeAction 0 “40021” – Selection: Select All
$.EditablePoly.autosmooth ()
subobjectLevel = 0
clearSelection()
for you to test it, u can create a box 10x10x10, converted to editable poly and break all of its vertices.
this should work then
theObjs = (selection as array)
for obj in theobjs do
(
select obj
macros.run "Modifier Stack" "Convert_to_Poly"
subobjectLevel = 2
actionMan.executeAction 0 "40021"
$.EditablePoly.Remove ()
subobjectLevel = 1
actionMan.executeAction 0 "40021"
$.weldThreshold = 0.01
$.EditablePoly.weldFlaggedVertices ()
subobjectLevel = 2
actionMan.executeAction 0 "40021"
$.edgeChamfer = 0.1
$.edgeChamferSegments = 3
$.EditablePoly.buttonOp #Chamfer
subobjectLevel = 4
$.EditablePoly.SetSelection #Face #{1..6}
$.insetAmount = 0.05
$.EditablePoly.buttonOp #Inset
$.EditablePoly.buttonOp #Inset
actionMan.executeAction 0 "40021" -- Selection: Select All
$.EditablePoly.autosmooth ()
subobjectLevel = 0
clearSelection()
)
awesome is not enough to describe it!
Neither thankful is!
I need to optimize it a little bit coz it needs to long to run over each object and got some flickering on the interface… but it will do the job!
thanks again!
there several things in the script you use that don’t make sense for me… i don’t understand why you try remove all edges, and why you insert two times extra faces.
i thing that the:
undo "Chamfer" on for obj in theobjs do
(
converttopoly obj
obj.weldthreshold = 0.01
polyop.weldvertsbythreshold obj #all
obj.edgechamfersegments = 3
polyop.chamferedges obj #all 0.1
obj.selectedfaces = obj.faces
polyop.autosmooth obj
update obj
)
does do exactly the same job