Python: frame_set skips frame -1; frame_set(n) sets to frame n-1 for (only) negative number n, and sets to frame n for non-negative number n. #41550
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#41550
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
System Information
Windows 7 64-bit, GTX 580
Blender Version
Broken: BuildBot 2.71 revision ea07d93 (August 18th, 2014), at least all the way back to the beginning of July.
Short description of error
Run a little Python script like this:
What frame does that set the scene to? You'd think it would be frame -1, but instead it's frame -2! If you enter any negative number n into frame_set(), it will set the scene to frame n-1. If you enter any non-negative number nn into frame_set, it will set the scene to frame nn.
I've been able to set the frame to -1 only by doing this:
bpy.context.scene.frame_set(-1,subframe=0.5)
But I don't think that's how it's supposed to work.
Exact steps for others to reproduce the error
This (frame_set_skips_frame_-1.blend) file contains this code:
Uncomment any one of the lines and verify that the frame that the scene was set to matches the end-of-line comment's predictions.
Changed status to: 'Open'
Added subscriber: @moak
This issue was referenced by blender/blender@9541f75200
Odd, seems to have been introduced on purpose in blender/blender@94cb20ff4e, but no explanation at all about that… Will revert for now.
Changed status from 'Open' to: 'Resolved'