Page MenuHome

object visibility controlled by driver bug
Closed, DuplicatePublic

Description

Operating system: windows 10
Graphics card: gt 730

blender 2.8

hash: 26d5a3625ed

date: 29/11/2018

**i can't keyframe object visibilty and worse driver don't work for object visibility.

i can't also add a driver to the object visibility i have to do it by the "disable object on the viewport thing".**

juste key frame the object visibility and after that add a driver and control the mesh visibilty by a bone

Details

Type
Bug

Event Timeline

This is a duplicate of T56635, will merge this report into T56635 then

I guess this is related to T62094 as well, since driver/keying would follow similar workflow.
There is a workaround for this: Add Driver to "Properties > Object > Viewport Display > Display as" and set the values 0 and 5.
(0=Invisible, 1=Bounds, 2=Wire, 3=Solid, 4=???, 5=Textured)
Here is an example:


I don't know if it is intended but it works.

Cheers.

Nice Idea Sidney. And in case it hasn't occurred to anyone, I've resorted to adding a mask modifier to relevant objects and keyframing/driving that, in the meantime.

If you're absolutely switching from invisible to visible or vice versa, you could also simply scale an object to a value of 0 in the next or previous frame.

I guess this is related to T62094 as well, since driver/keying would follow similar workflow.
There is a workaround for this: Add Driver to "Properties > Object > Viewport Display > Display as" and set the values 0 and 5.
(0=Invisible, 1=Bounds, 2=Wire, 3=Solid, 4=???, 5=Textured)
Here is an example:


I don't know if it is intended but it works.
Cheers.

Unfortunately, this won't work as soon as you render with Cycles. Even with Display as set to 0 the object will fully render. In Eevee it disappears.

I guess this is related to T62094 as well, since driver/keying would follow similar workflow.
There is a workaround for this: Add Driver to "Properties > Object > Viewport Display > Display as" and set the values 0 and 5.
(0=Invisible, 1=Bounds, 2=Wire, 3=Solid, 4=???, 5=Textured)
Here is an example:


I don't know if it is intended but it works.
Cheers.

Unfortunately, this won't work as soon as you render with Cycles. Even with Display as set to 0 the object will fully render. In Eevee it disappears.

It doesn't affect the rendering engines, only the viewport. For render it still possible to drive the bpy.data.objects["Object"].hide_render or as in the screenshot attached.
So, in other words, if you want to exclude the object from scene using drivers, you have to driver both options following the values: 0-5 to viewport from display_type and 1-0 to hide_render.