skip hidden object (viewport or in render) in autobuild

1.8.17

- changed: in autobuild, ignore object that are not visible in scene or with render toggle off
This commit is contained in:
pullusb 2025-06-02 15:08:28 +02:00
parent d2a19ae9e3
commit 0dae5157b1
3 changed files with 8 additions and 3 deletions

View File

@ -13,6 +13,11 @@ if duplicate, need to "connect" with namespace ('_duprender') or something
Activate / deactivate layer opacity according to prefix
Activate / deactivate all masks using MA layers
-->
1.8.17
- changed: in autobuild, skip object that are not visible in scene or with render toggle off
1.8.16
- fixed: Better reorder socket. Still not perfect, can have bad result if there some unconnected sockets on both sides.

View File

@ -202,8 +202,8 @@ class GPEXP_OT_render_auto_build(bpy.types.Operator):
scn.gp_render_settings.node_scene = node_scene.name
scn.gp_render_settings.render_scene = render_scn.name
all_gp_objects = [o for o in context.scene.objects if o.type == 'GPENCIL']
all_gp_objects = [o for o in context.scene.objects if o.type == 'GPENCIL' and o.visible_get() and not o.hide_render]
## Exclude Background GP (is_background is a custom property set by the addon "Background Plane Manager")
if self.exclude_background_gp:
all_gp_objects = [o for o in all_gp_objects if not o.get('is_background')]

View File

@ -2,7 +2,7 @@ bl_info = {
"name": "GP Render",
"description": "Organise export of gp layers through compositor output",
"author": "Samuel Bernou",
"version": (1, 8, 16),
"version": (1, 8, 17),
"blender": (3, 0, 0),
"location": "View3D",
"warning": "",