Custom property cannot be animated #56636

Closed
opened 2018-08-31 22:22:18 +02:00 by Antonio Vazquez · 12 comments

Blender2.8 Windows 64 bits version 30/08/2018 20:49

If you add a keyframe using I key over the custom property, if you move timeline, you cannot change or animate the custom property.

To reproduce:

  1. Open attached file.
  2. Select cube and in custom properties set "hide" property to 0
  3. Over "hide" property, press I to insert keyframe
  4. Move the timeline and try to change hide prop or insert a new keyframe

I noticed also some random blender crashes when clear the property keyframe of hide property.

I have tested the same in 2.79b and works.

Driver_280.blend

Blender2.8 Windows 64 bits version 30/08/2018 20:49 If you add a keyframe using I key over the custom property, if you move timeline, you cannot change or animate the custom property. To reproduce: 1) Open attached file. 2) Select cube and in custom properties set "hide" property to 0 3) Over "hide" property, press I to insert keyframe 4) Move the timeline and try to change hide prop or insert a new keyframe I noticed also some random blender crashes when clear the property keyframe of hide property. I have tested the same in 2.79b and works. [Driver_280.blend](https://archive.blender.org/developer/F4488493/Driver_280.blend)
Author
Member

Added subscriber: @antoniov

Added subscriber: @antoniov
Author
Member

I have pasted the log of one the crashes P775

I have pasted the log of one the crashes [P775](https://archive.blender.org/developer/P775.txt)
Author
Member

I could reproduce the error with the default scene:

  1. Open default scene
  2. Select default cube
  3. Add a custom prop (the default name is prop)
  4. Press N and in properties enter any value to "prop"
  5. Press I over prop
  6. Now try to move timeline and insert a new value in the prop.
I could reproduce the error with the default scene: 1) Open default scene 2) Select default cube 3) Add a custom prop (the default name is prop) 4) Press N and in properties enter any value to "prop" 5) Press I over prop 6) Now try to move timeline and insert a new value in the prop.

Added subscribers: @Sergey, @JoshuaLeung, @mont29

Added subscribers: @Sergey, @JoshuaLeung, @mont29

Reminds me of similar issue with some VSE properties in 2.7x… IIRC, animation gets re-evaluated when editing those values, hence they get reset to animated value immediately…

@JoshuaLeung, @Sergey, not sure whether we have standard fix for those cases?

Reminds me of similar issue with some VSE properties in 2.7x… IIRC, animation gets re-evaluated when editing those values, hence they get reset to animated value immediately… @JoshuaLeung, @Sergey, not sure whether we have standard fix for those cases?
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

@antoniov: asked in IRC if I could also have a look, and here are my findings (sorry for the lengthy detour, this might all be totally obvious for others...)

Changing a value in a (already keyed) custom property will go through dependency graph DEG_OPCODE_ANIMATION and thus calls BKE_animsys_eval_animdata (where this all gets evaluated/reset to the current fcurve value)
deg_graph_id_tag_update: id=OBCube flags=TRANSFORM, GEOMETRY, TIME, triggered here

Changing a value for e.g. posx wont do this:
deg_graph_id_tag_update: id=OBCube flags=TRANSFORM
deg_graph_id_tag_update: id=OBCube flags=COPY_ON_WRITE

if I remove the TIME dependency (like P802), this will obviously work (but will probably lack updates elsewhere [drivers...])

From comments in code I was first expecting AnimOverride to take care of this [see animsys_evaluate_overrides()], but in fact these dont seem to be used at all?

Will have a look next how this survives in 2.79 with the new dependency graph...

@antoniov: asked in IRC if I could also have a look, and here are my findings (sorry for the lengthy detour, this might all be totally obvious for others...) Changing a value in a (already keyed) `custom property` will go through dependency graph DEG_OPCODE_ANIMATION and thus calls BKE_animsys_eval_animdata (where this all gets evaluated/reset to the current fcurve value) deg_graph_id_tag_update: id=OBCube flags=TRANSFORM, GEOMETRY, TIME, triggered [here ](https://developer.blender.org/diffusion/B/browse/blender2.8/source/blender/makesrna/intern/rna_access.c;51b2d06613bb3a11a04f051d7dabaa6530a0e5c0$2100) Changing a value for e.g. `posx` wont do this: deg_graph_id_tag_update: id=OBCube flags=TRANSFORM deg_graph_id_tag_update: id=OBCube flags=COPY_ON_WRITE if I remove the TIME dependency (like [P802](https://archive.blender.org/developer/P802.txt)), this will obviously work (but will probably lack updates elsewhere [drivers...]) From comments in code I was first expecting `AnimOverride` to take care of this [see animsys_evaluate_overrides()], but in fact these dont seem to be used at all? Will have a look next how this survives in 2.79 with the new dependency graph...
Member

Another thing I noticed when having an animated custom property is that even other keyframes might not be evaluated anymore (and this is even true for 2.79 with new depsgraph)...:

  • Open default scene
  • Select default cube
  • Add a custom prop (the default name is prop)
  • Press N and in properties enter any value to "prop"
  • Press I over prop
  • insert single keyframe on locx
  • move one frame forward, change locx to 1, insert single keyframe on locx again
  • change frames --> transform is not updated! [even though it is keyed]
  • this goes back to normal evaluation after file reload

(more detailed depsgraph info in P803)

Another thing I noticed when having an animated custom property is that even other keyframes might not be evaluated anymore (and this is even true for 2.79 with new depsgraph)...: - Open default scene - Select default cube - Add a custom prop (the default name is prop) - Press N and in properties enter any value to "prop" - Press I over prop - insert single keyframe on locx - move one frame forward, change locx to 1, insert single keyframe on locx again - change frames --> **transform is not updated! [even though it is keyed]** - this goes back to normal evaluation after file reload (more detailed depsgraph info in [P803](https://archive.blender.org/developer/P803.txt))

Initially reported bug is caused by ID properties always tagging for time update. Doing something like this P806 solves the issue.

My guess is this is because old depsgraph was ignoring time update if animation data wasn't tagged for update. The new code with proposed i think is correct.

Not sure it's the same issue as @lichtwerk did report.

Initially reported bug is caused by ID properties always tagging for time update. Doing something like this [P806](https://archive.blender.org/developer/P806.txt) solves the issue. My guess is this is because old depsgraph was ignoring time update if animation data wasn't tagged for update. The new code with proposed i *think* is correct. Not sure it's the same issue as @lichtwerk did report.
Member

@Sergey: thought so, too [P802 == P806 :)]
(if that doesnt cause bad stuff elsewhere: great)

second issue remains though [the one with not updating transform -- see above. Should I move this to a separate report?]

@Sergey: thought so, too [[P802](https://archive.blender.org/developer/P802.txt) == [P806](https://archive.blender.org/developer/P806.txt) :)] (if that doesnt cause bad stuff elsewhere: great) second issue remains though [the one with not updating transform -- see above. Should I move this to a separate report?]

This issue was referenced by b4ebb9d8ef

This issue was referenced by b4ebb9d8efb202221834475e1c06b0ae3e4ffe77

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#56636
No description provided.