Modify object material (proxy instance)

I fail to modify to material of certain object, possibly due they are an instance proxy and grayed out:

Following code will modify their positions/rotations, but materials are not touched.

 def randomize_load():
         random_mat_floor = rep.create.material_omnipbr(diffuse_texture=rep.distribution.choice(textures+textures_wall),
                                                       roughness=rep.distribution.uniform(0, 1),
                                                        metallic=rep.distribution.choice([0, 1]),
                                                        emissive_texture=rep.distribution.choice(
                                                        textures+textures_wall),
                                                        emissive_intensity=rep.distribution.uniform(0, 1000))
         
         shapes = rep.get.prims(path_pattern='Cardbox_A\d ') 
         with shapes:
             rep.modify.pose(
                 rotation=rep.distribution.uniform((0,0, 0), (0, 0, 360)),
                 scale=rep.distribution.uniform((1, 1, 1),(1.5, 1.5, 2))
             )
             rep.randomizer.materials(random_mat_floor)
 
         return shapes.node

Hey man! Did you manage to solve your issue? Right now I am having the same problem.

Hello,

unfortunately, I didn’t find a solution yet. Still waiting for some input.

Hi @sbt.goga & @thorsten.hempel , at this stage, the object you are working with is a reference object. You can identify this through the icon or by checking its properties. Due to this, you are unable to modify the mesh properties including material of the object. To enable such changes, you may consider using a non-reference version of the object instead.