FCurve update method for scripts #36168
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#36168
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?
%%%This small patch exposes Blender's internal FCurve update functions (specifically sort_time_fcurve and testhandles_fcurve) to Python scripts through a new "update" method on bpy.Types.FCurve.
Triggering the update functions previously required running a curve operator of some sort, all of which check the context for UI state. Setting up and then reverting the UI state was a pain when Blender was running with UI and impossible when it was running in background mode.
This patch mainly helps import scripts.%%%
Changed status to: 'Open'
Added subscriber: @JoshuaLeung
Changed status from 'Open' to: 'Resolved'
I ended up reimplementing a similar feature in 3e26a7a594a9f2d91cba48ba70d30e3ca38a5505 to fix a bug.
In the end, I found that there were a few issues with this patch so I couldn't use it as-is (i.e. RNA api for FCurves already exists - it lives at the end of the struct def for FCurves, and the naming of the new API function was inconsistent with the rest of the code). Nevertheless, I ended up crediting this patch in the commit (though I had a bit of trouble trying to find it again at the time).
Thanks anyway for your time and work :)
Thanks for the commit!