Notifications
Clear all

[Closed] Move all keyframes forward?

What’s the best way to move ALL the keyframes in a scene forward by (for example) one frame? Do I have to make a function to loop through every key of every track of every node, or is there some simpler way to accomplish this?

Either way, advice would be appreciated!

5 Replies

According to the docs this should be easier. For example this should insert 40 frames at frame 0

inserttime rootnode.children 0f 40f

I did not verify that this REALLY catches all controllers, but i would think so …

See more here
http://docs.autodesk.com/3DSMAX/14/ENU/MAXScript%20Help%202012/files/GUID-46A7941F-9A1E-49AF-B607-5516DC6ACCE-1358.htm

Seems to work so far,thanks! I’ll let you know if I encounter any problems

it moves keys of first root children only.
a little cleaner will be:

movekeys objects 10
 -- or
 inserttime objects 0 10

but both these two methods don’t work probably for global tracks, animatables stored ouside a pblock, and note tracks…

2 Replies
(@spacefrog)
Joined: 1 year ago

Posts: 0

Thanks for the headsup – i thought the mxs docs meant all children, but it’s text is quite ambiguous

inserts time in all controllers of all children of…

(@denist)
Joined: 1 year ago

Posts: 0

the rootnode children set is different than node children. it’s all about ‘map’ ability. the rootnode children set is not recursively mappable.