Keyframing Corner pinning in compositing is inconsistent #101516

Open
opened 2022-10-01 10:55:07 +02:00 by Angelo Ignotus · 13 comments

System Information
Operating system: windows 10
Graphics card: Nvidia geforce GTX 1050 Ti

Blender Version
Broken: 3.3.0

Short description of error
When using the background X symbols to drag and drop corners with corner pinning, only the topmost value of each vector is keyframed
Example image(wanted to edit a meme):
image.png

Exact steps for others to reproduce the error

  • Open attached file
  • Single Render to Update Compositor
  • Move the Corner Pins
    or
  • Arrange nodes as seen.
{F13601679}
  • Select the corner pin node
  • Try to keyframe the location of the second image/video, using auto keyframes and the background viewport manipulators.
    Only the topmost (X) value gets keyframed

Corner pin.blend

**System Information** Operating system: windows 10 Graphics card: Nvidia geforce GTX 1050 Ti **Blender Version** Broken: 3.3.0 **Short description of error** When using the background X symbols to drag and drop corners with corner pinning, only the topmost value of each vector is keyframed Example image(wanted to edit a meme): ![image.png](https://archive.blender.org/developer/F13601668/image.png) **Exact steps for others to reproduce the error** - Open attached file - Single Render to Update Compositor - Move the Corner Pins or - Arrange nodes as seen. ``` {F13601679} ``` - Select the corner pin node - Try to keyframe the location of the second image/video, using auto keyframes and the background viewport manipulators. Only the topmost (X) value gets keyframed [Corner pin.blend](https://archive.blender.org/developer/F13609600/Corner_pin.blend)
Author

Added subscriber: @Rokonuxa

Added subscriber: @Rokonuxa
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Hi, thanks for the report. I'm not able to redo this. AFAICS all are keyframed correctly (tested in latest 3.4 build).
Are you able to reproduce it from scratch? Can you upload your .blend?

Hi, thanks for the report. I'm not able to redo this. AFAICS all are keyframed correctly (tested in latest 3.4 build). Are you able to reproduce it from scratch? Can you upload your .blend?
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Author

If it is fixed in 3.4, thats fine. I had the issue in 3.3
If you cannot reproduce it in 3.3, then something may be weird.
Simply set up nodes as seen, the images or textures used are irellevant, then enable auto keyframing (1), select the corner pin node (2), then move these X's around (3)
image.png

they move properly, but the keyframing only happens for the X coordinate.
image.png
got you the file anyways, but again, if 3.4 fixed it thats fine.
Corner pin.blend

If it is fixed in 3.4, thats fine. I had the issue in 3.3 If you cannot reproduce it in 3.3, then something may be weird. Simply set up nodes as seen, the images or textures used are irellevant, then enable auto keyframing (1), select the corner pin node (2), then move these X's around (3) ![image.png](https://archive.blender.org/developer/F13609582/image.png) they move properly, but the keyframing only happens for the X coordinate. ![image.png](https://archive.blender.org/developer/F13609590/image.png) got you the file anyways, but again, if 3.4 fixed it thats fine. [Corner pin.blend](https://archive.blender.org/developer/F13609600/Corner_pin.blend)
Member

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

I can confirm the problem

I can confirm the problem

Added subscriber: @Sergey

Added subscriber: @Sergey

This is more for the UI (Gizmo) code than to the VFX & Video.

It seems that the issue is in the WM_gizmo_target_property_anim_autokey which has an explicit code to restrict array properties to only first array index. I am not sure why this is so, or is it just an oversight where intent was to force index of 0 for scalar properties or something.

This is more for the UI (Gizmo) code than to the VFX & Video. It seems that the issue is in the `WM_gizmo_target_property_anim_autokey` which has an explicit code to restrict array properties to only first array index. I am not sure why this is so, or is it just an oversight where intent was to force index of 0 for scalar properties or something.

Added subscriber: @ideasman42

Added subscriber: @ideasman42

The Auto-keyframe feature for gizmos, along with the explicit code to restrict array properties, has been implemented in 1e0b790364.
So @ideasman42 must know why?

Removing the restriction seems to fix the bug:

diff --git a/source/blender/windowmanager/gizmo/intern/wm_gizmo_target_props.c b/source/blender/windowmanager/gizmo/intern/wm_gizmo_target_props.c
index 9f0506f209b..0c7666526b9 100644
--- a/source/blender/windowmanager/gizmo/intern/wm_gizmo_target_props.c
+++ b/source/blender/windowmanager/gizmo/intern/wm_gizmo_target_props.c
@@ -344,8 +344,7 @@ void WM_gizmo_target_property_anim_autokey(bContext *C,
   if (gz_prop->prop != NULL) {
     Scene *scene = CTX_data_scene(C);
     const float cfra = (float)scene->r.cfra;
-    const int index = gz_prop->index == -1 ? 0 : gz_prop->index;
-    ED_autokeyframe_property(C, scene, &gz_prop->ptr, gz_prop->prop, index, cfra, false);
+    ED_autokeyframe_property(C, scene, &gz_prop->ptr, gz_prop->prop, gz_prop->index, cfra, false);
   }
 }
 
The `Auto-keyframe` feature for gizmos, along with the explicit code to restrict array properties, has been implemented in 1e0b790364. So @ideasman42 must know why? Removing the restriction seems to fix the bug: ``` diff --git a/source/blender/windowmanager/gizmo/intern/wm_gizmo_target_props.c b/source/blender/windowmanager/gizmo/intern/wm_gizmo_target_props.c index 9f0506f209b..0c7666526b9 100644 --- a/source/blender/windowmanager/gizmo/intern/wm_gizmo_target_props.c +++ b/source/blender/windowmanager/gizmo/intern/wm_gizmo_target_props.c @@ -344,8 +344,7 @@ void WM_gizmo_target_property_anim_autokey(bContext *C, if (gz_prop->prop != NULL) { Scene *scene = CTX_data_scene(C); const float cfra = (float)scene->r.cfra; - const int index = gz_prop->index == -1 ? 0 : gz_prop->index; - ED_autokeyframe_property(C, scene, &gz_prop->ptr, gz_prop->prop, index, cfra, false); + ED_autokeyframe_property(C, scene, &gz_prop->ptr, gz_prop->prop, gz_prop->index, cfra, false); } } ```
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
4 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#101516
No description provided.