Bake Biped Head Look At animation

Last Updated on 29/01/2016

(
local BipRoot= $

if BipRoot.controller.headobject != undefined then
(
	local BipHead = biped.getNode BipRoot #Head
	local BipHeadTrans_arry =#()
	setWaitCursor()

	local start = (animationRange.start /TicksPerFrame) as integer
	local end = (animationRange.end /TicksPerFrame) as integer
	local step = 1
	slidertime = 0

	for t = start to end by step do
	(
		at time t
		(
		append BipHeadTrans_arry (biped.getTransform BipHead #rotation)
		)
	)
	slidertime = 0

	BipRoot.controller.headobject = undefined
	biped.clearSelectedAnimation BipHead.controller
	for t = start to end by step do
	(
		at time t
		(
		biped.setTransform BipHead #rotation (BipHeadTrans_arry[t+1])  true
		)
	)

	setArrowCursor()
)
)

To use:

  1. Select biped COM object (Bip001)
  2. Run script

I wrote maxscript snippet which allows bake animation from biped’s head when biped’s head animated through biped’s “Look At” controller. Script bakes biped head’s animation and then removes Look At Target.

Script Request Thread

Tags :

Leave a Reply