Problems removing texture packing (without writing anything) using image.unpack() or bpy.ops.image.unpack() #71171
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#71171
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
Operating system: Linux-4.13.10-041310-generic-x86_64-with-debian-stretch-sid 64 Bits
Graphics card: GeForce GTX 1050/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 390.67
Blender Version
Broken: version: 2.81 (sub 15), branch: master, commit date: 2019-10-24 19:00, hash:
blender/blender@892c3891ed
Short description of error
The
bpy.ops.image.unpack()
operator has the option to just remove packing (and I assume not writing anything), it's called 'Remove Pack' in the menu. See screenshot.The python reference in the tooltip for this operator is
bpy.ops.image.unpack(method='<UNKNOWN ENUM>', ... )
.Despite the faulty(?) method argument, it seams to work without an issue.
The unpack method on an image
bpy.data.images['normal.png'].unpack()
, which can do the same, only has the following items for the enum:{'USE_LOCAL', 'WRITE_LOCAL', 'USE_ORIGINAL', 'WRITE_ORIGINAL}
I'm wondering if there is one method missing, the one currently called 'Remove Pack
/
` in the operator.Added subscriber: @MACHIN3
Added subscriber: @Stan_Pancakes
PF_REMOVE (the '' here) is just not exposed to the Python API, and only set internally when generating that menu. Presumably because it's unsafe for work, i.e. if the file does not actually exist, data would be lost when .blend file is closed, unlike 'USE_ORIGINAL', that would actually write to file if it doesn't exist. Exposing it is trivial, but it'd be nice to see the devs' rationale on it.
This issue was referenced by blender/blender@9efe12d77a
Added subscriber: @lichtwerk
Of course we could add these to
unpack_all_method_items
,rna_enum_unpack_method_items
and I dont see a particular reason to not expose this (if we have this in the UI already), see D6152Will confirm with low prio for now...
Changed status from 'Open' to: 'Resolved'