Here is a quick script that will transfer animation from an object using the path deform modifier, to an object using the Path Follow positional constraint.
timeCounter = 0
maxTime = 380 --End of animation
---
for int = 0 to maxTime do
(
sliderTime = timeCounter
$TargetObj.pos.controller.percent = $SourceObj.modifiers[#PathDeform].Percent_along_path
timeCounter = timeCounter + 1
)
---
The script is a bit raw and requires the objects to be named "TargetObj" and "SourceObj", as well as all necessary modifiers put in place, but it works :)
Thursday, August 12, 2010
Subscribe to:
Posts (Atom)