I started using Blender two weeks ago for my construction project which was imported using 3ds format. I has about four hundred different objects and definitely I used to start using python to work with it. I already have written few scripts to remove hidden faces, doubles and so on and everything looks nice and works fine. But going deeper in python coding for blender I have some questions which I guess are now well explained yet or I didn’t find them yet. So would you please advise on the following:
- Why objects have different indexes in bpy.context.scene.objects vs bpy.data.objects?
- What is the difference between bpy.context.scene.objects and bpy.context.active_object and what is better to use? What limitations does each link has?
- If i need to use nodes for every mesh in my model is it possible to prepare draft node trees and just apply them changing links to materials, textures and etc.
- I wrote a script to remove faces depending on materials applied on them and that allows me to remove building frame, housewraps but roof and walls objects still consist interior faces as backsides of siding/drywall volumes which doubles use baking image areas (removing hidden wall faces significantly improves baking resolution but I would like to have no hidden faces at all)?
Thanks in advance.