Disabling smoothing by default on object creation

Disabling smoothing by default on object creation

guido77
Advocate Advocate
2,702 Views
4 Replies
Message 1 of 5

Disabling smoothing by default on object creation

guido77
Advocate
Advocate

Hi there,

 

I've been using Max for many many years, and when creating new objects I always need  to "clear all" smoothing groups.

 

Is there a way to setup Max to create objects with no smoothing in the first place?

 

 

Thanks!

 

0 Likes
2,703 Views
4 Replies
Replies (4)
Message 2 of 5

Swordslayer
Advisor
Advisor

Are we talking about primitives? Could you try something like

 

fn setUnsmoothed ev nd =
(	
	local obj = getAnimByHandle nd[1]
	if isKindOf obj GeometryClass and not isDeformable obj and isProperty obj #smooth do obj.smooth = false
)

callbackItem = NodeEventCallback mouseUp:true added:setUnsmoothed

 

to see if that's what you want? It will set the .smoothed property to false when you end the object creation.

0 Likes
Message 3 of 5

guido77
Advocate
Advocate

Thanks.

 

I'm not sure I understand. 

Yes, this is for primitives, but where would I put the script to make the primitives to not have smoothing by default?

0 Likes
Message 4 of 5

guido77
Advocate
Advocate

Actually, it's not just with primitives.

If I do a boolean operation to an extruded closed line, it will also get smoothing groups from somewhere.

 

0 Likes
Message 5 of 5

Swordslayer
Advisor
Advisor

@guido77 wrote:

Thanks.

 

I'm not sure I understand. 

Yes, this is for primitives, but where would I put the script to make the primitives to not have smoothing by default?


To the startup folder. You can run it once (CTRL+E in the maxscript editor) to see how that works for you.

 


@guido77 wrote:

Actually, it's not just with primitives.

If I do a boolean operation to an extruded closed line, it will also get smoothing groups from somewhere.


No fix for that, while it would be possible to, say, make it so that on conversion to editable poly/editable mesh, the smoothing groups are cleared, many other object types don't have explicit smoothing group switch and adding a Smooth modifier in the middle of another scene operation would quite likely break the workflow.

0 Likes