In my script I tried the following:
import bpy
arm = bpy.data.armatures.new('SomeName')
bpy.context.scene.objects.link(arm)
and I get the error:
TypeError: bpy_prop_collection[key] = value: invalid, expected a 'Object' type or None, not a 'Armature'
How do I link an armature created with .new()
to a scene?