2
$\begingroup$

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.enter image description here enter image description here

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!

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

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.

$\endgroup$
  • $\begingroup$ what is the script used in the driver for this to happen? $\endgroup$ – Nick Sieben Jul 18 at 19:37
  • $\begingroup$ @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. $\endgroup$ – sambler Jul 19 at 6:52
  • $\begingroup$ 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. $\endgroup$ – sambler Jul 19 at 7:36
  • $\begingroup$ Alright thank you $\endgroup$ – Nick Sieben Jul 19 at 12:53
  • $\begingroup$ Is it possible to bake drivers into keyframes? $\endgroup$ – Nick Sieben Jul 19 at 13:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.