Modifier Preset Creator

7 votes
Version: 
0.03a
Author Name: 
Vojtech Cada

If you find yourself changing modifier parameters to the same same values over and over again, make your life easier and use the same modifier with preset values instead.

Additional Info: 

Installation: The .ms file can be run from any location (Maxscript -> Run Script...).

Usage: First, set the modifier values to your liking. With the modifier active in the modifier stack, run the script, input new modifier name (for example ChamferRound for a Chamfer preset) and press the Create button. A text window will pop up with the current values filled in (all the lines beginning with the delegate. string). You can tweak it to your liking, drop some of them or leave it as it is and save it as a .ms file. To try it out, don't close the edit window, evaluate it there (Ctrl+E) and the modifier should appear in the modifier list. If you plan to use it from the modifier list or global search only, saving the file to your scripts\startup folder will be enough, if you want to be able to use it in the modifier sets panel, place the .ms file instead inside the stdplugs/stdscripts folder in the 3ds max root folder.

AttachmentSize
modifierPresetCreator.ms2.75 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
robobear510's picture

nice script

wasn't sure what it was supposed to do until I tried, see if I'll remember to use it next time I chamfer modify everything ;)

Swordslayer's picture

Too bad

WSM are not really modifiers, they are special kind of Space Warps (look at it in the curve editor, you won't see them under Modified Object, you will find them under Space Warps). And unfortunately, there's no scripted space warp plugin option. I guess it would be possible to create a modifier that self-destroys and creates the spacewarp modifier with proper parameters and adds it to the dependent objects, I might try to do that later, it just isn't a quick fix.

vusta's picture

ok works now...for Bend, Twist...etc...

next....

and I think this would benefit the most out of it....WSM !!!

In particular, the Hair, it's got craploads of settings that you would want as preset...but right now, don't think it likes WSM.

Swordslayer's picture

 

Both would be possible, although I think that this way it better communicates the idea that it's a script output that you have to save somewhere. Anyway, I've added a 'Test' button that evaluates the output behind the scenes so you can test it first, and renamed the 'Create' button to 'Save'. And also added a check if the classname exists and you're allowed to redefine it or not (you're still allowed to redefine mcg modifiers, for example, so better check twice).

Haider of Sweden's picture

.

Works great, you got my vote on this +1!

Say, just out of curiosity I wonder if this output window could have been part of the Custom Modifier Defaults UI itself, or does it have to be separate?

And is it possible through script to evaluate, ie an additional button called eg "Evaluate" that equals evaluating the code?

Kind regards
Haider
www.haider.se

Swordslayer's picture

gizmos skipped now

together with other subAnims, could you retest to see if I missed anything else? Any offending line can be deleted if it doesn't contain something you really want there, whatever is left out gets the default value.

vusta's picture

well there you go..

I thought I was plain stupid...couldn't get it working...

anyway, works now...but only for things that don't require a Gizmo. Things that do require a Gizmo like Bend, Twist...etc...it spits out this:

-- Syntax error: at keyword parameter, expected factor
-- In line: delegate.gizmo = SubAnim:G

ps: for others trying it, after Ctrl+E, looks like nothing happened, but look in your Mod list, a new entry has been added...so you chuck this onto your object like it was another modifier..

Swordslayer's picture

 

Could you redownload and try again? Uploaded version was the wrong one, sorry.

Haider of Sweden's picture

.

I get this when I press create

No ""getPropNames"" function for undefined

Kind regards
Haider
www.haider.se

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.