Create keyframes for every frame

Hi all,

I was wondering if there's a way to create automatically keyframes for a selected object in the scene, choosing if they're rotation, position, scale and so on. I don't know if a script already exist, but it would be useful for some game engines that requires a constant key on every frame to import correctly the animation.

Thank you all!

Comments

Comment viewing options

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

there's how-to for all PRS controllers

sTime = animationRange.start
eTime = animationRange.end
for obj in selection do (
	for t = sTime to eTime do
		addNewKey obj[3] t
)

my recent MAXScripts RSS (archive here)

Walrus's picture

Thank you Anubis, it works

Thank you Anubis, it works great!

Another question: there's a way using your script to create keyframes only for position and/or rotation using your code? I know that it's possible delete the scale controller using Curve editor, but it would be possible create keys for position/rotation only?

Thank you

Anubis's picture

yeah, of'cuz

actual modification to do that is really slim.

obj[3] -- whole transform
obj[3][1] -- position only
obj[3][2] -- rotation only
obj[3][2][1] -- X rotation only

I can write a mini tool with interface, if you like, just let me know ;)

my recent MAXScripts RSS (archive here)

Walrus's picture

Yes!

Yes, it would be great! :D Eventually it would be possible create a rollout with 4 or 5 buttons where it's possible choose if create all the keys, create only rotation or position keyframe for all objects or only on the selection?

Anubis's picture

OK

here is it:
http://www.scriptspot.com/3ds-max/scripts/addprskeys

my recent MAXScripts RSS (archive here)

Walrus's picture

Thank you Anubis! Really

Thank you Anubis! Really great! :D

Comment viewing options

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