Extract path

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

Comment viewing options

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

Try this one

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

barigazy

bones404's picture

Spline from keyed camera path

Barigazy,

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

bones404

Model or Perish
Bones404

bones404's picture

Convert to

le 1setreter,

Outstanding, thank you muchly :-)

bones404

Model or Perish
Bones404

le1setreter's picture

select camera -> switch to

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

Comment viewing options

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