modules/rna_xml.py: "Size Mismatch!" with different collections sizes #32882

Closed
opened 2012-10-15 19:28:25 +02:00 by Simon Larcher · 4 comments

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.%%%

**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.%%%
Author

Changed status to: 'Open'

Changed status to: 'Open'

%%%Campbell, can you please check on this? Thanks!%%%

%%%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
%%%

%%%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'

Changed status from 'Open' to: 'Archived'
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#32882
No description provided.