Notifications
Clear all

[Closed] Locking a controller on a Physical Camera

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

3 Replies

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

Thanks Denis!

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