Regression: Scaling of NLA Strip Via S Hotkey Not Working #101130
Closed
opened 2022-09-16 21:18:42 +02:00 by Charles
·
30 comments
No Branch/Tag Specified
main
universal-scene-description
temp-sculpt-dyntopo
blender-v3.3-release
blender-v3.6-release
asset-browser-frontend-split
brush-assets-project
asset-shelf
anim/armature-drawing-refactor-3
temp-sculpt-dyntopo-hive-alloc
tmp-usd-python-mtl
tmp-usd-3.6
blender-v3.5-release
blender-projects-basics
blender-v2.93-release
temp-sculpt-attr-api
realtime-clock
sculpt-dev
gpencil-next
bevelv2
microfacet_hair
xr-dev
principled-v2
v3.6.3
v3.3.11
v3.6.2
v3.3.10
v3.6.1
v3.3.9
v3.6.0
v3.3.8
v3.3.7
v2.93.18
v3.5.1
v3.3.6
v2.93.17
v3.5.0
v2.93.16
v3.3.5
v3.3.4
v2.93.15
v2.93.14
v3.3.3
v2.93.13
v2.93.12
v3.4.1
v3.3.2
v3.4.0
v3.3.1
v2.93.11
v3.3.0
v3.2.2
v2.93.10
v3.2.1
v3.2.0
v2.83.20
v2.93.9
v3.1.2
v3.1.1
v3.1.0
v2.83.19
v2.93.8
v3.0.1
v2.93.7
v3.0.0
v2.93.6
v2.93.5
v2.83.18
v2.93.4
v2.93.3
v2.83.17
v2.93.2
v2.93.1
v2.83.16
v2.93.0
v2.83.15
v2.83.14
v2.83.13
v2.92.0
v2.83.12
v2.91.2
v2.83.10
v2.91.0
v2.83.9
v2.83.8
v2.83.7
v2.90.1
v2.83.6.1
v2.83.6
v2.90.0
v2.83.5
v2.83.4
v2.83.3
v2.83.2
v2.83.1
v2.83
v2.82a
v2.82
v2.81a
v2.81
v2.80
v2.80-rc3
v2.80-rc2
v2.80-rc1
v2.79b
v2.79a
v2.79
v2.79-rc2
v2.79-rc1
v2.78c
v2.78b
v2.78a
v2.78
v2.78-rc2
v2.78-rc1
v2.77a
v2.77
v2.77-rc2
v2.77-rc1
v2.76b
v2.76a
v2.76
v2.76-rc3
v2.76-rc2
v2.76-rc1
v2.75a
v2.75
v2.75-rc2
v2.75-rc1
v2.74
v2.74-rc4
v2.74-rc3
v2.74-rc2
v2.74-rc1
v2.73a
v2.73
v2.73-rc1
v2.72b
2.72b
v2.72a
v2.72
v2.72-rc1
v2.71
v2.71-rc2
v2.71-rc1
v2.70a
v2.70
v2.70-rc2
v2.70-rc
v2.69
v2.68a
v2.68
v2.67b
v2.67a
v2.67
v2.66a
v2.66
v2.65a
v2.65
v2.64a
v2.64
v2.63a
v2.63
v2.61
v2.60a
v2.60
v2.59
v2.58a
v2.58
v2.57b
v2.57a
v2.57
v2.56a
v2.56
v2.55
v2.54
v2.53
v2.52
v2.51
v2.50
v2.49b
v2.49a
v2.49
v2.48a
v2.48
v2.47
v2.46
v2.45
v2.44
v2.43
v2.42a
v2.42
v2.41
v2.40
v2.37a
v2.37
v2.36
v2.35a
v2.35
v2.34
v2.33a
v2.33
v2.32
v2.31a
v2.31
v2.30
v2.28c
v2.28a
v2.28
v2.27
v2.26
v2.25
Labels
Clear labels
This issue affects/is about backward or forward compatibility
Issues relating to security: https://wiki.blender.org/wiki/Process/Vulnerability_Reports
Apply labels
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
This issue affects/is about backward or forward compatibility
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
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
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
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
Issues relating to security: https://wiki.blender.org/wiki/Process/Vulnerability_Reports
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 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 & 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
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
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
Milestone
Set milestone
Clear milestone
No items
No Milestone
Projects
Set Project
Clear projects
No project
Assignees
Assign users
Clear assignees
No Assignees
9 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#101130
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
System Information
Operating system: Win 10 x64
Graphics card: 3080 TI
Blender Version
Broken: 3.3.1, caused by
bd00324c26
Worked: 3.2.0,
e05e1e3691
, master, 2022-06-08 10:22Short description of error
Hotkey S seems to not be affecting the 'playback scale' value when scaling an NLA strip.
Exact steps for others to reproduce the error
The scale value (in the Sidebar) is unchanged, and if you play the animation, it loops twice instead of being played 2x slower.
If you scale manually in the N sidebar, there are no issues.
NLA_scale_issue.blend
Added subscriber: @CHARLES-MURRAY
#102754 was marked as duplicate of this issue
#101305 was marked as duplicate of this issue
Added subscriber: @mano-wii
Changed status from 'Needs Triage' to: 'Confirmed'
I can confirm the problem.
It was introduced sometime between
4c3b984b3d
and0e9367fc29
investigating...
Added subscribers: @dr.sybren, @BClark, @thibaulltt
Good catch, thank you
Scaling of NLA Strip Via S Hotkey Not Workingto Regression: Scaling of NLA Strip Via S Hotkey Not WorkingAdded subscriber: @item412
Right now the scale hot key changes the Strip Start/End time instead of Scale being mapped to the Animated Clip Scale because we changed the end time to no longer scale the clip.
I can see why this is working that way and also I can see why it is confusing. It is being looked at.
I wonder what was the reason for changing behavior of Start/End sliders? Because scaling strips to particular frames is exactly what I was using those sliders for.
The main reason is that "END" frame shouldn't have been changing the scale of the animation. When someone wanted to adjust the end of a clip, the would type in the end value that changed the Action Clip Scale attribute, changing the speed of the animation without them knowing it.
So now Start/End are just that, a start and end for the strip instead of scaling it, start moves the strip to the correct start frame end adjusts the end of the clip to be the global length you want it without scale. What isn't expected was that the S key scale didn't get reconnected to drive the Action Clip Scale value.
But after the patch if you adjust End frame to make strip longer, you adding frames to clip where's no keyframes.
Sorry for the offtopic, but the logic of latest changes escapes me and it makes job of copying strip structure from one object to another more cumbersome.
Yes the end frame of the strip will be longer and if you don't have keys, it holds or expands the strip. END frame should not have == scale of the clip and change the animation length.
The number of people that the first time they used the NLA and wanted the clip to HOLD the time for longer or to add keys into the clip but didn't have auto sync on or want to TRIM the clip length, would change that end frame thinking it was a "trim" and not a scale, and then would end up messing up their animation.
In all video editing tools, adjusting the end of the clip is a trim operation, not a scale/time change operation.
You still have Action Strip Scale and You should have once fixed Scale tool to scale a clip to fit.
Ideal would be that we have two modes and some visual handles/ controls over editing/adjusting the end of the clip so that one default end of clip manipulator would drag the end frame. and holding a modifier key or changing the mode the end or start drag would scale it.
The other thing that this fixes is allowing us to create a Trim tool that will be able to correctly trim a looped clip.
can you talk about this more or make a video on what you are talking about here "copying strip structure from one object to another more cumbersome."
That would be much welcomed!
It's just my way of working.
Since I can't directly copy/paste strips from one object to another, i have to reproduce same strip structure manually.
When i lay out a row of strips with different scales, i can memorize END frames of strips in that row from other object, instead of constantly selecting back and forth to copy scale (which often looks something like 1.34473)
100% the not being able to rebuild/transfer or duplicate Edits across other objects is a huge pain. Thank you that makes much more sense and it is on my list of stuff to get fixed but so are lots of things.
So it would be less of an issue if we had a way to rebuild an edit /duplicate it and set objects /actions instead of you having to by hand rebuild it.
https://www.reddit.com/r/blenderhelp/comments/4wt1xr/copying_and_pasting_nla_action_strips/ some workaround ideas until it is something built in? Have you looked at those?
I think I saw this. Seems like it's applicable only to identical armatures. In my case animation timing is the same, but armatures are different.
It would be great to have ability to copy/paste strips as containers and just assign proper actions to them after.
Yeah it is for identical armatures but you could duplicate the armature, the clear it of bones, join the different armature into it then swap out the action clip actions. and keep the strips. ugly but something to think about for now.
Thank you for the discussion
Please keep the comments on a bug strictly on the topic of that bug. This is not a general discussion forum, and having too much noise only slows down the bugfixing.
Hi all, I was a bit late to the party. I'm here to outline exactly how this patch will be resolved as well as define what went wrong.
What went wrong ?
bd00324c26
introduced a new way to manage theframe_start
andframe_end
properties of aNlaStrip
. This meant all code accessing those properties would have been based on the earlier behavior of the properties and thus prone to error (as the old workflow itself wasn't all that well defined).source/editors/space_nla
folder. Any code using the NLA structures/data from outside those folders would not have been updated, and this is the root of the problem for this task.Given those initial conditions, bugs were inevitable. And this is no exception ! Let's review why this particular bug happened.
release/scripts/presets/keyconfig/keymap_data/blender_default.py
at line 2603).transform.transform
operation.source/blender/editors/transform/transform_convert_nla.c
at line 389, in therecalcData_nla()
function.eTfmMode
enum)frame_start
andframe_end
properties as they were previously behaving. Furthermore, the code was actually modified to overcome a limitation of the RNA properties of theNlaStrip
that existed beforehand (see #33852 for the original bug report and more discussion on this).What will be done ?
As @dr.sybren mentioned in a private chat with @BClark, Nathaniel and myself the best course of action would be the following :
recalcData_nla()
function. EDIT : this is now uploaded under D16181.This needs to be performed in order to make the function actually more readable (it's already at 200+ lines without any special handling for different transform modes). This will also help with code review, as the
recalcData_nla()
function will thus only serve as a dispatcher to dedicated transform functions for the NLA structures, and the case-by-case nature of all different transform types will be handled in separate functions.I will update the comment with the dedicated Differential revisions for both steps when they will be published.
This issue was referenced by
962b647690
Changed status from 'Confirmed' to: 'Resolved'
Changed status from 'Resolved' to: 'Confirmed'
Silly Phabricator saw a pre-fix cleanup as enough to close this task. Tsssk tssk.
Added subscribers: @HectorDeAnda, @PratikPB2123, @TheRedWaxPolice
This issue was referenced by
51759e6595
Changed status from 'Confirmed' to: 'Resolved'
Christoph Lendenfeld referenced this issue2023-02-10 11:56:21 +01:00