Say you have a cube and a sphere grouped as 'Group'. You instanciate that group and link it to the scene. Now when you click on the instance, there is no material panel.
See the two pictures below for a better understanding of what I'm trying to do.
Is it possible to access the duplicated objects in the dupli instance in order to give them new materials ?
The only thing I succeeded in doing is to assign a material to an object instance but not to objects within a group instance.
Python answers are welcome.
As requested, here's the code to create a dupli_group instance:
layers = [True] + 19*[False] # Could replace this with bmesh method object1 = bpy.ops.surface.primitive_nurbs_surface_sphere_add(radius=1, location=(0, 0, 0), layers=layers) object1 = bpy.context.active_object object2 = bpy.ops.mesh.primitive_cube_add(radius=1, location=(4, 0, 0), layers=layers) object2 = bpy.context.active_object group = bpy.data.groups.new('some_group_name') group.objects.link(object1) group.objects.link(object2) group_instance = bpy.data.objects.new('some_group_name_instance1', None) group_instance.dupli_type = 'GROUP' group_instance.dupli_group = group bpy.context.scene.objects.link(group_instance)
Then I would expect to have a way to target object1 and object2 within group_instance and to set new materials that won't affect other instances.