Read SVG id-attribute for lines, polygons, etc. as it's already done for path and ellipsis #61707

Closed
opened 2019-02-19 11:26:17 +01:00 by Michael G. · 6 comments

System Information
Operating system: Win10/Ubuntu 18
Graphics card: Internal

Blender Version
Broken: 2.79b release

Short description of error
I'd like to import an SVG and do some scripting on the imported objects. To distinguish the imported objects I'd like to use the ID-attribute I have given to the objects in the SVG by naming them in inkscape/corel draw.
Unfortunately this works only for paths and ellipses. Lines, Rectangles and polylines receive a generic name instead the given ID. Would it be possible to read the ID as it's done here for the path-object already for other object types, too? See https://git.blender.org/gitweb/gitweb.cgi/blender-addons.git/blob/HEAD:/io_curve_svg/import_svg.py#l1217

Exact steps for others to reproduce the error
Import attached SVG and see the curves' names.
rakete-f.svg
blender-svg-import-datastructure-fullfeatured.PNG

**System Information** Operating system: Win10/Ubuntu 18 Graphics card: Internal **Blender Version** Broken: 2.79b release **Short description of error** I'd like to import an SVG and do some scripting on the imported objects. To distinguish the imported objects I'd like to use the ID-attribute I have given to the objects in the SVG by naming them in inkscape/corel draw. Unfortunately this works only for paths and ellipses. Lines, Rectangles and polylines receive a generic name instead the given ID. Would it be possible to read the ID as it's done here for the path-object already for other object types, too? See https://git.blender.org/gitweb/gitweb.cgi/blender-addons.git/blob/HEAD:/io_curve_svg/import_svg.py#l1217 **Exact steps for others to reproduce the error** Import attached SVG and see the curves' names. ![rakete-f.svg](https://archive.blender.org/developer/F6657968/rakete-f.svg) ![blender-svg-import-datastructure-fullfeatured.PNG](https://archive.blender.org/developer/F6657963/blender-svg-import-datastructure-fullfeatured.PNG)
Author

Added subscriber: @mgrl

Added subscriber: @mgrl
Jacques Lucke self-assigned this 2019-02-19 14:10:59 +01:00
Author

Whoaa whaat? I just sent this message off and an implementation is already on the way?! I love it! thank you very much, I appreciate.

Whoaa whaat? I just sent this message off and an implementation is already on the way?! I love it! thank you very much, I appreciate.

This issue was referenced by b1320f3af6

This issue was referenced by b1320f3af626210555df43494733ffc295d2aeda
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Member

@mgrl, yep, this should work in tomorrows build. If it does not, please create a new bug report and add me as a subscriber.

@mgrl, yep, this should work in tomorrows build. If it does not, please create a new bug report and add me as a subscriber.
Author

perfect, thank you!

perfect, thank you!
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#61707
No description provided.