ScriptSpot

Script

Certain Modifier ON/OFF

By anaStudio · Credited author: anas mansour · 2009-11-09

Version
V 1.3
Version requirement
3ds max 8 and 2009 -- mostly will work under all versions --
Date updated
2009-11-09
Votes
13
Description

I can describe it as a good handy script for choosing a certain modifier in all the scene - in any scene node - and turn it on and off easily,

i really searched for this specific script and i couldn't find it.

i use it alot myself as i work in animation to turn on and off "flex" modifier because when you grab the time slide back when its "ON" especially in a big scene it takes alot of time.

You can use it with any other modifier such as turbosmooth ,etc.

sadly the modifier name must be identical in all nodes to have this script work.

if any one could help me enhance it please do.

Attachments

Tags: modifier, easy, on, off, handy, easily edited

Comments (8)

Marci · 2009-11-11

@animatoo:

drag the mcr script-file into the max viewport...i thought its the fastest way to initialize a script (?)

@jordan walsh:

tried your script some weeks ago. maybe wasnt intuitive enough or too complex, but i failed. will give it a try in further projects.

sometimes simplicity beats multifunctionality ;)

@Marci: True, the less

Jordan Walsh · 2009-11-11

@Marci:

True, the less clicks the better :) (btw, most of the functionality is in the right click menus)

anaStudio · 2009-11-10

thanx all for comments,

@Anubis
"i'll try it ,first time i hear about this "state" thing, i'm new here in scripting i work basically as a 3d artist but i needed a certain script to do thing that might help me improve my work and reduce the time -in fact now all my time at work is consumed in learning new script methods D:-"
@ marci
"thanx for interest,i'll test yours..-sorry drag what in the viewport,i can't get it!!-"

@ Jordan Walsh
"i saw your script before!!but the name didn't mentioned - at least for my poor english - that this is the purpose of this modifier -and by the way i started it as a toggle but in flex modifier for the same purpose D:-"

fajar
"i'll try it,though i'm sure its better than mine"

fajar · 2009-11-10

I'll say jordan walsh script is still the best at it.

Marci · 2009-11-09

nice script.

searched for a global ON/OFF modifier state function. decided to extend your script. now there are three buttons "toggle","global on","global off" =)

greetz from germany!

PS: drag it into the viewport and you'll find a new category "Thinking-Twins" under customization properties.

Attachments

Anubis · 2009-11-09

The script is ok, but if you wish some ideas - there is some trick by using "not state" to swap true/false value:

on switch pressed do
(
	mn = modifier_name.text
	affected = for g in geometry where
		g.modifiers [mn] != undifined collect g
	for i in affected do
	(
		state = i.modifiers[mn].enabled
		i.modifiers[mn].enabled = not state
	)
)

anaStudio · 2009-11-09

try it and tell me your opinion