View Full Version : Switching off Autosmooth
bmlokesh 02-04-2008, 09:55 AM 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
|
|
RustyKnight
02-04-2008, 10:33 PM
Forgive me, I think part of your post didn't quite make it past the keyboard.
So I assume you want it to work on EditablePoly and EditableMesh's
There is a meshOps.autosmooth...so, now you need to determine which object is...
if (classof o) == Editable_Poly then (
-- Do editable poly...
) else if (classof o) == Editable_Mesh then (
-- Do editable mesh
)
bmlokesh
02-05-2008, 05:52 AM
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
scrimski
02-05-2008, 09:13 AM
No need to script this.
Select all your objets, add a Smooth modifier, tick off Autosmooth, collapse the stack if needed.
CGTalk Moderation
02-05-2008, 09:13 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.