0
$\begingroup$

I am trying to use an old script to generate random trees. The Blender version is 2.79b and the whole script can be seen here:

https://github.com/tduboudi/IAMPS2019-Procedural-Fruit-Tree-Rendering-Framework/blob/master/space_tree_scene_gen.py

My issue is that, as seen on lines 124-130:

bpy.ops.group.create(name='Leaves')
grp = bpy.data.groups.get('Leaves')
objects_to_add = ['autumn_leaves_PNG3609','autumn_leaves_PNG3581',
'green_leaves_PNG3638','green_leaves_PNG3668']
for name in objects_to_add:
    obj = bpy.data.objects[name]
    grp.objects.link(obj)

this part of the code apparently does not create the group named "Leaves" as the screenshot below enter image description here

the

'autumn_leaves_PNG3609','autumn_leaves_PNG3581','green_leaves_PNG3638','green_leaves_PNG3668'

are put in the scene correctly but outside the supposed to be created group "Leaves". I don't understand why, also because the script run till the end without any error.

$\endgroup$

0

You must log in to answer this question.

Browse other questions tagged .