diff --git a/metashapes.py b/metashapes.py index 081e95b..43a757c 100644 --- a/metashapes.py +++ b/metashapes.py @@ -67,7 +67,7 @@ def shapePts(array): mball = bpy.data.metaballs.new('MetaBall') obj = bpy.data.objects.new('MetaBallObj', mball) -scene.objects.link(obj) +bpy.context.collection.objects.link(obj) mball.resolution = 0.2 mball.render_resolution = 0.02