modules/rna_xml.py: "Size Mismatch!" with different collections sizes #32882
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#32882
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?
Relates to: #31703
%%%When using xml2rna from the rna_xml module, the import is aborted when a bpy_prop_collection in the xml has a different length than in the current file.
For example, as in the attached file, xml2rna into a fresh new .blend doesn't work.
The workaround proposed in #31703 ( http://projects.blender.org/tracker/?func=detail&atid=498&aid=31703&group_id=9 ) doesn't work because prop collections do not have an .add() method.
Reproducing: Open the attached .blend and run the script (xml2rna.py), even though the XML refers to data on my computer, the Size mismatch! message will display before.%%%
Changed status to: 'Open'
%%%Campbell, can you please check on this? Thanks!%%%
%%%Hi Simon, The XML presets were intended as a way to store settings without having to execute code - supporting vector collections is useful too but not really a bug.
As in - adding support for this is fine but at some point you hit a limitation with xml2rna.py not being able to restore entire datablocks / blendfiles.
Having xml2rna.py as an alternative to the blend file format is outside the scope of this py module.
Closing this bug but adding it to the python TODO wiki.
http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/Scripting#General_todo_items
%%%
Changed status from 'Open' to: 'Archived'