I’m trying to learn how to use python in Blender. I use the console window and the info window to help me as much as I can by doing the actions I want to code in the 3D viewer and then copying the output of the info window into the script editor. When I parent a camera to an object, I get this output:
bpy.ops.object.parent_set(type=‘OBJECT’, xmirror=False, keep_transform=False)
I noticed that it doesn’t reference the object I parented to, which it must know somehow. So what am I missing?