INFO Box dissappears for running modal operator that uses pass though #102939
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#102939
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?
System Information
Operating system: Have tried both MAC &WINDOWS
Graphics card: Various
Blender Version
Broken: 3.1
I'm trying to make a blender addon that will work as a timer so I can easier keep track of how much time I'm spending on a project. I've tried various approaches the best one I've found this far is to have a simple button on my UI that when clicked will trigger the following function:
the counter will be replaced by time difference when the following problem gets sorted. This approach partially works but if there is a 3d object with active (not applied modifiers) and try to reorder them the info box that was initially visible at the bottom of blender disappears and no matter what I do only reappears if I restart blender. I've tried clicking the button that starts the fuction again. Also after adding print statments I realised that the operator is still running and the problem is that the info box is not showing up. Finally, if I change pass_through to running_moodal blender does not allow me to interact with it at all
Added subscriber: @marinouj
Added subscriber: @iss
I am no python expert, but seems weird to declare
__init__
and__del__
for operator. I can confirm strange behavior though, with my script, timer will increase frequency andprint(self.counter)
is never executed. Also operator then can't be stopped. I think I have seen similar report, seems like there is conflict with timer being used for another operation.This seems to be broken for quite a long time, see blender/blender#98892.
Perhaps you could store start time in custom property and produce report every x seconds when timer is in broken state. I suspect that report does not show up because of frequency of these reports. Alternative could be to use app handlers, but there you can't guarantee any periodicity. But registering on frame change, on save and on render should produce relatively frequent calls. Maybe with on save handler will run with autosave feature, and you can set period of that in preferences.
Closed as duplicate of blender/blender#98892