Cannot set a custom homefile from Python #37731
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#37731
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?
bpy.ops.wm.save_homefile() operator sets the current open file as the default file.
In BlenderFDS3 (www.blenderfds.org) I would like to automatically set a different file as default, so I tried:
class WM_OT_bf_set_bf_homefile(bpy.types.Operator):
But this does not work: the context.window is destroyed by open_mainfile, and save_homefile complains about the wrong context.
Is this a bug or a missing feature? I let you judge.
Thank you in advance.
Emanuele
Changed status to: 'Open'
Added subscriber: @emanuelegissi
This issue was referenced by blender/blender-addons-contrib@51263c6637
This issue was referenced by blender/blender@51263c6637
Changed status from 'Open' to: 'Resolved'
Closed by commit blender/blender@51263c6637.
Added subscriber: @brecht
Fixed, thanks for the report.
You solved it in a matter of minutes!
I am astonished by your blazing fast solution.
A big thank you.