Blender 2.8 Viewport object visibility problem

I have this annoying problem to which I can't seem to find a solution

Is there a way to enable in viewport to display rendered only objects, check out image below to see what I mean.

In 2.79 it was possible to link object visibility via drivers, so viewport would display in real time the objects that would be rendered (by linking visibility to render via driver). But in 2.8 visibility cannot be animated anymore!

Is there any hidden option that allows me to do this what I want? please help me out because I've been looking for hours

Thanks!

• what is the expression used in the driver for this to happen? asking for my own use. – Nick Sieben Jul 18 '19 at 19:45

1 Answer

Using a driver for visibility properties works in the current build of blender. There are some related changes that may be affect what you are trying to do.

In 2.7x pressing D adds a driver to the property under the cursor, in 2.80 that is now ⎈ CtrlD to add a driver.

In 2.7x the property hide will hide the object in the viewport, in 2.80 that is now called hide_viewport so scripts or drivers may need to be updated with this change.

• what is the script used in the driver for this to happen? – Nick Sieben Jul 18 '19 at 19:37
• @NickSieben Setup hide_viewport like this. You can enable Use Self and enter self.hide_render but it shows it as a slow python expression. – sambler Jul 19 '19 at 6:52
• Also note, that this is a one way dependency. We can add a driver to hide_viewport so that it is the same as hide_render but not the other way. – sambler Jul 19 '19 at 7:36
• Alright thank you – Nick Sieben Jul 19 '19 at 12:53
• Is it possible to bake drivers into keyframes? – Nick Sieben Jul 19 '19 at 13:23