Locking a controller on a Physical Camera


#1

I’m trying to work out how to ‘lock’ a controller on a Physical Camera. This should lock the film_width_mm and focal_length_mm, but it doesn’t work. Anyone got any ideas?

lockedTracksMan.setLocks true #($[4][4],$[4][5]) #($[4],$[4]) #(4,5) false


#2

you have to apply a controller first:

c = $.film_width_mm.controller = bezier_float()
lockedTracksMan.setLocks true c c -1 false

c = $.lens_focal_length_mm.controller = bezier_float()
lockedTracksMan.setLocks true c c -1 false

#3

Thanks Denis!


#4

Strange tho that you can lock the track in the UI without assigning a controller though…