Blender腳本同步渲染(小相機(jī))與可視(小眼睛)
復(fù)制到Script執(zhí)行:
查詢小眼睛狀態(tài)(當(dāng)前視圖層),然后修改可渲染狀態(tài)
import bpy
for obj in bpy.data.objects:
? ? try:
? ? ? ? hide_status = obj.hide_get()
? ? ? ? if obj.hide_render != hide_status:
? ? ? ? ? ? obj.hide_render = hide_status
? ? except Exception as e:
? ? ? ? print("Error in?object:", obj.name)
? ? ? ? print("Error :", str(e))
標(biāo)簽: