UV Layout: 'export_layout' operator doesn't run because GPU functions are not available in background mode #98167
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#98167
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: Windows11 64 bits, ubuntu
Blender Version
Broken: nytimes/blender:3.1-cpu-ubuntu18.04
Worked: Never
Addon Information
Name: UV Layout (1, 1, 1)
Author: Campbell Barton, Matt Ebb
Short description of error
Error with
bpy.ops.uv.export_layout()
when trying to write UVs to a file.Exact steps for others to reproduce the error
blender.exe --background --python-expr "import bpy; bpy.ops.uv.export_layout()"
Added subscriber: @benhoyle1212
Added subscriber: @mano-wii
Changed status from 'Needs Triage' to: 'Confirmed'
Well, even working offscreen, the GPU module does not work in background mode because in this mode a drawing context is not created.
So it's not something with a simple solution.
You need to create a temporary window if you really need to run this operator.
But
Error: Python: Traceback
doesn't seem ideal, therefore confirming the bug.GPU functions for drawing are not available in background mode : Docker-container Ubuntu 18.04 blender 3.10to UV Layout: 'export_layout' operator doesn't run because GPU functions are not available in background modeAdded subscriber: @phil123456
FYI : I have the same issue installing MY addon while the problem comes form the official Anim Extras addon
(workaround : disabled animextras - install my script - enable animextras)
Is there an alternative to uv.export_layout that wouldn't require the gui? All the maths is being done under the hood anyway, is it not possible to access it without the gui?