Custom property cannot be animated #56636

Closed
opened 5 years ago by antoniov · 12 comments
Collaborator

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)
Poster
Collaborator

Added subscriber: @antoniov

Added subscriber: @antoniov
Poster
Collaborator

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)
Poster
Collaborator

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.
mont29 commented 5 years ago
Owner

Added subscribers: @Sergey, @JoshuaLeung, @mont29

Added subscribers: @Sergey, @JoshuaLeung, @mont29
mont29 commented 5 years ago
Owner

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?
Collaborator

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Collaborator

@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...
Collaborator

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))
Sergey commented 4 years ago
Owner

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.
Collaborator

@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?]
Collaborator

This issue was referenced by b4ebb9d8ef

This issue was referenced by b4ebb9d8efb202221834475e1c06b0ae3e4ffe77
Sergey commented 4 years ago
Owner

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sergey closed this issue 4 years ago
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/Collada
Interest/Compositing
Interest/Core
Interest/Cycles
Interest/Dependency Graph
Interest/Development Management
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/Modeling
Interest/Modifiers
Interest/Motion Tracking
Interest/Nodes & Physics
Interest/Overrides
Interest/Performance
Interest/Performance
Interest/Physics
Interest/Pipeline, Assets & I/O
Interest/Platforms, Builds, Tests & Devices
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
legacy module/Animation & Rigging
legacy module/Core
legacy module/Development Management
legacy module/Eevee & Viewport
legacy module/Grease Pencil
legacy module/Modeling
legacy module/Nodes & Physics
legacy module/Pipeline, Assets & IO
legacy module/Platforms, Builds, Tests & Devices
legacy module/Python API
legacy module/Rendering & Cycles
legacy module/Sculpt, Paint & Texture
legacy module/Triaging
legacy module/User Interface
legacy module/VFX & Video
legacy project/1.0.0-beta.2
legacy project/Asset Browser (Archived)
legacy project/BF Blender: 2.8
legacy project/BF Blender: After Release
legacy project/BF Blender: Next
legacy project/BF Blender: Regressions
legacy project/BF Blender: Unconfirmed
legacy project/Blender 2.70
legacy project/Code Quest
legacy project/Datablocks and Libraries
legacy project/Eevee
legacy project/Game Animation
legacy project/Game Audio
legacy project/Game Data Conversion
legacy project/Game Engine
legacy project/Game Logic
legacy project/Game Physics
legacy project/Game Python
legacy project/Game Rendering
legacy project/Game UI
legacy project/GPU / Viewport
legacy project/GSoC
legacy project/Infrastructure: Websites
legacy project/LibOverrides - Usability and UX
legacy project/Milestone 1: Basic, Local Asset Browser
legacy project/Nodes
legacy project/OpenGL Error
legacy project/Papercut
legacy project/Pose Library Basics
legacy project/Retrospective
legacy project/Tracker Curfew
legacy project/Wintab High Frequency
Meta/Good First Issue
Meta/Papercut
migration/requires-manual-verification
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 & Devices
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 Information 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

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#56636
Loading…
There is no content yet.