Open s70c3 opened 5 months ago
您好,您的邮件我已经接收。
I don't quite understand this issue. But How about try:
for i, o in enumerate(bpy.data.objects):
if o.type in ("MESH", "CURVE"):
o.data=o.data.copy()
o["inst_id"] = i + 1
or o["inst_id"] = 2*i + 1
Hi! Thanks for the awesome blender util!
I use your util to create a segmentation map for bunch of clumped objects created with instances and geocodes. I realized before creating instance map and reassigned with data.copy(). The problem is that I have more than 100 objects on area, but some objects still have the same color on instance map, limited to 20-30. I used a lot of attempts to change inst_id, but situation stayed the same. How can I fix it?
Here is the code (some hacks was used to work with material, so code is not perfect)
Here are the examples of render and instance map.