From 051e059082edd45ff4580920b14b672591041356 Mon Sep 17 00:00:00 2001 From: Matt Mays Date: Tue, 12 Jul 2022 15:04:42 +0200 Subject: [PATCH] Replaced SceneObjects.link, removed in Blender 2.8 "As of Blender 2.8x SceneObjects.link(object) is gone due to the new collection system. You can use CollectionObjects.link(my_object) instead so you just need to replace a single line to "update the script" for Blender 2.8x" https://blender.stackexchange.com/questions/162256/bpy-prop-collection-object-has-no-attribute-link --- metashapes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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