At the moment, the Rendercam camera doesn’t recognize a “follow” message, you use the function rendercam.follow(target_id)
(documentation).
One caveat is: The init order of objects in the same collection is undefined, and the camera can’t get commands until after it is init. This is pretty easy to get around with timer.delay though.
Some example code:
local rendercam = require "rendercam.rendercam"
function init(self)
local myID = go.get_id()
timer.delay(0, false, function() rendercam.follow(myID) end)
-- A timer with a delay of zero will trigger just before the text frame's update.
end
That’s all you have to do. You shouldn’t have to modify Rendercam code (or the code of any extension, usually).
If Rendercam is missing some features that you want, take a look at Orthographic, it’s actively maintained and has more features than Rendercam.