Quan_Lee
(Quan Lee)
January 29, 2023, 11:21am
1
A lot of times I started rendering forgetting to turn off that rendering visibility icon in the outliner.
Is there any way Blender can automatically hide all the invisible objects in the 3D viewport in the final rendering?
Oh, this is my fault, I am sorry.
Let me make myself clear.
I like to match the render visibility to the viewport, or should I say I like to only render the things that can be seen in the viewport.
Thanks!
i don’t understand? why do you want to turn off visibility for objects which are already invisible?
Run this script.
import bpy
for o in bpy.data.scenes["Scene"].objects :
o.hide_render = o.hide_get()
… assuming you are working on a scene called Scene
.
Good luck.
2 Likes
moonboots
(moonboots)
January 29, 2023, 12:30pm
4
the objects you’re highlighting are not invisible in viewport though…
1 Like
Render Visibility isn’t the same as Viewport Visibility and it is sometimes annoying to remember the difference in large scenes.
OP was highlighting the Render Visibility icons to supplement the question.
moonboots
(moonboots)
January 29, 2023, 12:54pm
7
sure but he’s talking about synchonizing viewport visibility with render visibility, and in the image the viewport visibility is on, or i completely misunderstand his question…
Yea I think the image was just illustrative. The question was clear
Okidoki
(Okidoki)
January 29, 2023, 12:59pm
9
Yepp… only difference: the empty is not selectable.
Okidoki
(Okidoki)
January 29, 2023, 1:03pm
10
Okay… but he used that instead of the and added an image… showing something different
(Okay… maybe that’s nitpicking… but clear answers for clear questions .)
skuax
(skuax)
January 29, 2023, 1:03pm
11
i think zeroskilz gave the solution…
1 Like
RobWu
(Rob)
January 29, 2023, 2:00pm
12
One of the more infuriating annoyances in Blender…
e v e r y b o d y - coming in from another 3d app will run into this…
We rolled our own panel/buttons to deal with this.
Debuk
(Debuk)
January 29, 2023, 3:33pm
13
I wrote an addon that keeps it all automatically in sync
6 Likes
moonboots
(moonboots)
January 29, 2023, 3:34pm
14
yes there should be a button somewhere to automatically sync
Quan_Lee
(Quan Lee)
January 29, 2023, 4:32pm
15
Thank you! This is a really good addon.
Quan_Lee
(Quan Lee)
January 29, 2023, 4:49pm
16
Wow, this addon is much easier, Thank you!
1 Like