Notifications
Clear all

[Closed] Switching off Autosmooth

Hi all,
I want to switch off autosmooth for some 2000 objects.

I found the autosmooth help in maxscript refference and wrote
for o in geometry do polyop.autoSmooth o and this works for only ediatable poly

The intented script should work irrespective of editable poly or editable

Please guide me

Thanks in advance

3 Replies

Forgive me, I think part of your post didn鈥檛 quite make it past the keyboard.

So I assume you want it to work on EditablePoly and EditableMesh鈥檚

There is a meshOps.autosmooth鈥o, now you need to determine which object is鈥?/p>


if (classof o) == Editable_Poly then (
  -- Do editable poly...
) else if (classof o) == Editable_Mesh then (
  -- Do editable mesh
)

sorry,

I have a mesh imported from sketchup. I Imported the model through 3ds format, while importing it is having the option of giving smoothing number from 1 to 24 but not to switching off the autosmooth option.
After importing the objects all the objects have got smoothing groups even the flat surface objects, some of them have got corrupted faces.

The only option to solve this is as I found is to switch off autosmooth but I cant do this for 2000 objects manulally.

I just want to write a script for this

No need to script this.
Select all your objets, add a Smooth modifier, tick off Autosmooth, collapse the stack if needed.