Can't set influence of NLAStrip using Python #49816
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#49816
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello!
Summary of problem: When I try to set keyframe for influence parameter of NLAStrip via Python code, it doesn't works as expected.
Below I will try to describe the problem in detail.
Here is my sample file - bugreport.blend
I have a cube with two NLA strips. Top strip named "CubeAction" have Animated influence turned on.
Now, I am changing its influence to 0.2. It works. In Dope Sheet I can see a keyframe created for "Influence", right under the "NLA Strip controls" group (this is because I have "Automatic keyframe insertion" turned on).
I am trying to playback animation - the influence works fine.
Now, I am reloading the file (discarding all changes) and trying to do the same with the following Python code:
My goal is to add keyframe to influence parameter of NLA strip.
I am choosing "Text" >"Run Script" in text editor area.
After that result is the following:
You can see the keyframe is added successfully, but it is on different track, outside of "NLA Strip controls" group. If I am trying to playback animation and influence doesn't applied at all - it is treated as if influence is zero
What am I doing wrong?
Changed status to: 'Open'
Added subscriber: @zelgadis
P.S. I am using Blender 2.78 binary build on Linux 64bit from official Blender website.
Added subscriber: @JoshuaLeung
Ack! Looks like I forgot to force the keyframe_insert() method in the PyAPI to add these keys to the NLA Strip instead of into the action as per normal.
https://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.75/Animation#NLA_Strips_-_Local_Keyframes_for_Time_and_Influence_Controls
This issue was referenced by blender/blender@3cbe95f683
Changed status from 'Open' to: 'Resolved'