thank you björn, but this is trange. in the userdata i did exact the same order as in the condition node but the object doesnt fit to my list box of the user data integer. i have to random change the order of either condition or userdata and luckily i get the wanted result somehow but is there a way to control this (specially when i have a lot of objects)
second question. i want to control the color (via linking the color channel of an material to the user data) of the instance. this works without any problem but when i copy paste the setup the material does not get copied. so i cant control the copys color cause it still takes the color of my main setup. i did a try and it works via linking a shader effector instead of a material but i work with vray and it doesnt take “color” in shader effector. is there any solution to do this via a material?