In python console if I
def selected_curves():
print("active objects:")
crvs = []
for obj in bpy.data.objects:
if obj.select:
print( obj.name)
print( obj.type)
if obj.type == 'CURVE':
print('is a curve' )
then call
selected_curves()
I get:
active objects:
NurbsPath.000 CURVE is a curve NurbsPath.001 CURVE is a curve NurbsPath.003 CURVE is a curve
Then say try an lookup above in bpy.data.curves say:
bpy.data.curves['NurbsPath.000']
Traceback (most recent call last): File "", line 1, in KeyError: 'bpy_prop_collection[key]: key "NurbsPath.000" not found'
While:
bpy.data.curves['NurbsPath']
yeilds
bpy.data.curves['NurbsPath']
but
bpy.data.curves['NurbsPath.001']
yeilds
bpy.data.curves['NurbsPath.001']
as does
bpy.data.curves['NurbsPath.003']
yeidling
bpy.data.curves['NurbsPath.003']
Why is object name NurbsPath, but curve name NurbsPath.001. Is there some logic to this?