I'm looking to remove smoothing groups through Macroscript. I've set up the following actions to help optimize my meshes:
As you can see, I stopped it at faces so that I can manually deselect the smoothing groups (which for some unknown reason are applied to every imported objects.)
When I recorded the removal, the scripting spat out errors. Also, I manually set the vertices and faces to select within a large range, but since I'm unfamiliar with the syntax, I didn't know how to specify 'all within a range' instead of 1-5000.
Can anyone please help?
Code:
macros.run "Modifier Stack" "Convert_to_Poly" subobjectLevel = 1 actionMan.executeAction 0 "40021" $.EditablePoly.SetSelection #Vertex #{1..5000} $.EditablePoly.weldFlaggedVertices () subobjectLevel = 4 actionMan.executeAction 0 "40021" $.EditablePoly.SetSelection #Face #{1..5000}
When I recorded the removal, the scripting spat out errors. Also, I manually set the vertices and faces to select within a large range, but since I'm unfamiliar with the syntax, I didn't know how to specify 'all within a range' instead of 1-5000.
Can anyone please help?
Comment