ScriptSpot

Forum topic · General Scripting

chamfer modifier

By themaxxer · 2016-02-28

Description

hello there

is it possible to make a script that enables or disable all chamfer modifiers at once in a scene? this would be very handy, because snapping with it enabled is hard and then you forget to enable it again before rendering...

thanks in advance and best regards
themaxxer

Comments (2)

`

pixamoon · 2016-02-29

hi, you can try this:


--to enable/disable
for o in getclassinstances Chamfer do o.enabled = true -- or false
	
--to enable/disable in viewport only
for o in getclassinstances Chamfer do o.enabledInViews = true -- or false