# Adding selected objects to active keying set

I'm trying to add selected objects to active keying set but it doesn't work (no error). This is my script:

import bpy

scene = bpy.context.scene

ks = scene.keying_sets.active

for obj in bpy.context.selected_objects:


Where am I wrong ? Thanks

I finally found in the scene panel that the data path should just be "location", so my code sould be:

import bpy

scene = bpy.context.scene

ks = scene.keying_sets.active

for obj in bpy.context.selected_objects: