ScriptSpot

Forum topic · Scripts Wanted

Extract path

By bones404 · 2012-12-18

Description

I tend to hand move my cameras, in keymode, then I want to lock them down or smooth their movements with a spline, can a spline be extracted from hand keyed camera movements? If so this would be very useful to people like me.

Comments (4)

Try this one

barigazy · 2012-12-19

Note: use animated camera

fn extractTrajectory cam step: startF: endF: =
(
local slinePaths = SplineShape name:(uniqueName "TrajectoryPath")
addNewSpline slinePaths
for t = startF to endF by step do
(
at time t
(
addKnot slinePaths 1 #smooth #line cam.pos
)
)
updateShape slinePaths
)
extractTrajectory $Camera001 step:5 startF:0 endF:100

Spline from keyed camera path

bones404 · 2012-12-19

Barigazy,

Thank you as well, I will run that as soon as I am through rendering this weekend :-)

bones404

Convert to

bones404 · 2012-12-19

le 1setreter,

Outstanding, thank you muchly :-)

bones404

le1setreter · 2012-12-19

select camera -> switch to "motion" tab -> select "Trajectories" -> spline conversion ("Convert To")