I'm importing an SVG file into my scene using
bpy. But after importing, the curve is not selected nor active. Here is wat I am doing:
path = '/path/fo/file/' file = 'contour.svg' bpy.ops.import_curve.svg(filepath = path + file)
Can I just assume that the newly imported object is always the last one in the objects array? So that I can grab it like this:
active_object = bpy.context.scene.objects[-1]
Or is there a better way?