SVG Importer: circles and rectangles don't get datablocks named after the original objects #51594

Closed
opened 2017-05-23 14:03:49 +02:00 by Tobiasz Karoń · 4 comments

I'm messing around with the SVG importer and I've noticed that rectangle and circle objects that are not converted to paths prior to saving the SVG file in Inkscape don't get names in the datablocks that reflect data in the SVG file.

Regular polygons or spirals do receive names that correspond to the SVG data.

Why that matters to me?

I'm trying to make a script that'll filter and process the imported curves, but to do this - I need to identify them, and with this problem, I need to convert all my circles and rectangles to paths before I will be able to do so, and that's a small problem, because I can mess that up easily.

Here's a little test Inkscape SVG file:
Test 01.svg

If you compare the importe Blender curve databock names and the original SVG object names, the circle and the rectangle that weren't converted to paths have generic datablock names "CurveXXX" that are not linkable to anything in that SVG file - hence impossible to process.

Animation.gif

I'm messing around with the SVG importer and I've noticed that rectangle and circle objects that are not converted to paths prior to saving the SVG file in Inkscape don't get names in the datablocks that reflect data in the SVG file. Regular polygons or spirals do receive names that correspond to the SVG data. Why that matters to me? I'm trying to make a script that'll filter and process the imported curves, but to do this - I need to identify them, and with this problem, I need to convert all my circles and rectangles to paths before I will be able to do so, and that's a small problem, because I can mess that up easily. Here's a little test Inkscape SVG file: ![Test 01.svg](https://archive.blender.org/developer/F607042/Test_01.svg) If you compare the importe Blender curve databock names and the original SVG object names, the circle and the rectangle that weren't converted to paths have generic datablock names "CurveXXX" that are not linkable to anything in that SVG file - hence impossible to process. ![Animation.gif](https://archive.blender.org/developer/F607043/Animation.gif)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @TobiaszunfaKaron

Added subscriber: @TobiaszunfaKaron

This issue was referenced by 97bf32a8b8

This issue was referenced by 97bf32a8b84b7a9ef40b9406802f293e0280814f

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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#51594
No description provided.