Page MenuHome

Driver/Keyframes on object visibility do not update viewport
Open, ConfirmedPublic

Description

Blender 2.8 Windows 64 bits version 30/08/2018 20:49

If one objet visibility option is changed using a driver, the visibility only changes after save and reload.

To reproduce:

The attached file has 2 objects, a Cube and a Suzanne monkey. There is a driver attached to suzanne to hide/show and the driver is handled using a custom prop of Cube. I know this is not a common use, but I tried to make a file as simple as possible to reproduce the bug.

  1. Open attached file
  2. Select the cube and in properties change "hide" property value to 1.
  3. Look at the outliner and verify hide property change in Suzanne.
  4. In viewport the Suzanne object still remain visible.
  5. Save and reload, the property now works.

I have tested the same driver hidden a collection and the problem is the same. Tested also in 2.79b and the drive hide/show suzanne without problems.

Details

Type
Bug

Event Timeline

Bastien Montagne (mont29) triaged this task as Confirmed priority.

Seems to be an update issue, clicking on the show/hide 'eye' icon, or on the render 'camera' one in the outliner fixes to visibility too, but clicking again on the viewport 'grid' one exhibits again the problem. As if driver eval was not updating things properly. not suer what exactly is the problem here, would suspect again some COW/depsgraph thingy, @Sergey Sharybin (sergey)?

@Philipp Oeser (lichtwerk) I think this could be related to T56636

Could you take a look?

This really is an issue for @Sergey Sharybin (sergey) to look at, it's a limitation regarding animation visibility in the dependency graph. We may not even support it in the first 2.80 release since it is quite complex to solve.

@Sergey Sharybin (sergey): just letting you know this gets reported quite often...

Really hoping this is fixed soon. It feels like a basic feature for all animators.

Still don't work with today build (downloaded from blender.org / beta section / windows 64).

If this can be useful ; I added the file I use to test this feature (see attached blend file).

The cube should desapear if you move up the constrained cone.
With the current build, I noticed that the outliner updates correctly when you hoover it with mouse cursor (icons updates, sometimes with a bit lag, as long as you hoover the outliner with the mouse cursor) but the 3D view won't update. You will have to disable/enable the cube object selection in the outliner, then the 3D view will update.

Also, if you play too much with the 3D view visibility of the cube inside the outliner (the eye icon) it will krashes blender, and/or have unpredictable behaviours.

Hope this would help a bit...

i've just found this problem - keyframing renderability for a Plane object and a Point Lamp are not working in an animation file that worked at 2.79