Reduce Transform Keys

17 votes
Version: 
1.0

This is not my first attempt at writing max script, I've hacked a ittle around the edges with adding custom attributes - Thanks PEN - but this is my first attempt at a useful/functional tool.

Reduce Your Transform Keys is designed to strip away all the transforms that don't do anything.

By default the range is set to your current animation range but you can confine the key pruning to a specific region for your timeline.

I don't like losing the key a frame 0 so I added a radiobutton to add one and ...

Just in case - add a key at the end of the animation range.

Hope you can put it to good use.

Cool

 

Additional Info: 

It's a macroscript so run it and ReduceYourTransformKeys should appear under "Craig's Tools"

Add it to a quad or menu.

Version Requirement: 
Written for MAX 2009
Video URL: 
AttachmentSize
ReduceKeys-v1.0.ms2.59 KB

Comments

Comment viewing options

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

Sorry if too late but i dont

Sorry if too late but i dont see someone to reply so... just in case you still not found solution -- reduceKeys() function has a bug in Max 2009. Exist a forum topic about this in Autodesk Area. Briefly, modify panel must be not open, or just look into my 'Bake Transform' script code:
http://www.scriptspot.com/3ds-max/bake-transform

Best regards, Anubis

my recent MAXScripts RSS (archive here)

craigpmiller's picture

Most, if not all, scripts

Most, if not all, scripts use or make existing functions.

On my home PC running my script takes half the time using the button in the curve editor takes I think because it redraws the display every time it removes a key.

Cheers

craigpmiller's picture

Anubis, Yes, I tried that

Anubis,
Yes, I tried that but I get an

"-- No ""reduceKeys"" function for undefined"

error message.

Which, frankly, tells me nothing about why it broke.

Thanks for the suggestion.

Cheers

111's picture

isn't it a thing like

isn't it a thing like built-in REDUCE KEYS function?

Anubis's picture

about "reduceKeys

about "reduceKeys $.modifiers[1] 0.5 1f" you forgot to call controller, so change to >
reduceKeys $.modifiers[1].controller 0.5 1f
Good luck!

my recent MAXScripts RSS (archive here)

craigpmiller's picture

I was looking for a way to

I was looking for a way to reduce keys in a modifier but when I ran

reduceKeys $.modifiers[1] 0.5 1f

It does the job and reduced the keys on the first modifier in the stack ...

But totally trashes the modifier panel which will not display anything, not the selected object name, list of modifiers nothin'! Buttons inactive. Caput!

 OMG!! UndecidedSealedFoot in mouth

 Wot have I done? Laughing

Any hints out there?

Comment viewing options

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