It looks like there might be a bug with the setKeyframe() method. When I run the following code line-by-line from the interactive console: new_grp = mset.groupObjects([mset.findObject('Main Camera')])
new_grp.setKeyframe('linear')
mset.getTimeline().setTime(2)
new_grp.position = [0,10,0]
new_grp.setKeyframe('linear') I get…
Weird, there is a "5." in that first block of code that I can't delete with an edit. It should have read: new_grp = mset.groupObjects([mset.findObject('Main Camera')]) new_grp.setKeyframe('linear') mset.getTimeline().setTime(2) new_grp.position = [0,10,0] new_grp.setKeyframe('linear')