[Closed] Select EditMesh and convert to EditPoly ?
Hy Script Gods of this community,
i want to create a script that automaticly selects every EditMesh in a Scene and converts them into EditPoly objects? But i have no idea how to achieve this
maybe the functions “convert all” and “convert selected” would be great…
I don´t think it´s a fancy script so maybe one of you could help me out.
greets and thanks in advance
anselm
for o in objects do (
if (classOf o == Editable_Mesh) then (
convertToPoly(o)
)
)
Stev
Faster and shorter:
for o in geometry where classOf o == Editable_Mesh do convertToPoly o
There is no reason to loop through all scene nodes (helpers, lights etc.) when looking for Editable Meshes. An inline where should be faster than the if then and it makes the code more compact, too.
But I am just being a smarta**
Thank you stev and Bobo for helping me out. I owe you one!
I will test it right away.
Greets from rainy Germany!
Anselm