"Unable to Import Images as Planes - Float Division Error with PNG Files" #105352
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#105352
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: widows 11 (23H2)
Graphics card: RTX 3050 4GB VRAM MOBILE gpu 75 tgp
Blender Version
Broken: Blender 4.1.1
Worked: Blender 4.1.1
Short description of error
Unable to import images as planes; receiving a "float division error" when using PNG format.
Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).
Open Blender.
Ensure you have the "Import Images as Planes" add-on enabled.
Go to Edit > Preferences.
Navigate to the Add-ons tab.
Search for "Import Images as Planes" and enable it if it's not already.
Go to File > Import > Images as Planes.
Select a PNG image file from your system.
Click Import Images as Planes.
Result: An error message appears, stating "float division error," and the image fails to import.
Hey there, from a quick look at the code it seems that it's a issue with mapping the cameras axis & direction. I assume that you have 'camera' selected in the import settings for plane dimension.
From my current understanding of the code that happens when the camera is looking at the absolute world origin, however i was not yet able to replicate it yet.
You could help by adding some information about your camera and scene setup in your scene to help narrow it down to when it happens. Also include your import settings.
Does this issue happen for every .blend file or just a specific one?
Anyways in my opinion there should be a zero check in line 1185 or a default value for mag in line 1182.
However whilst trying to replicate i found some other interesting issues with this addon when importing images as planes with the plane dimension set to camera (for both fit and fill options); don't know if these should be seperate bug reports though as they seem kind of related:
ValueError: Matrix.invert(ed): matrix does not have an inverse
AttributeError: 'NoneType' object has no attribute 'data'