2 Feb
2010
2 Feb
'10
4:16 p.m.
Hi all,
it may seem to be a stupid question, but I can't find answer anywhere...
How can I get SPItem from Inkscape::XML::Node? (or create group object and get xml node from that - I need both)
I'm hacking on automatically grouping objects when setting clip/mask (as mentioned in another thread) and I need to create new group, so mask can be applied to the group instead of selected objects. Currently, I know how to create the svg:g XML element, move other objects into it and where to pass reference to the group to do what I want, but it needs to be a reference to SPItem and not Inkcape::XML::Node.
Is there any documentation for object tree and xml tree and how do they interact?
Thanks.
Best regards, Martin Sucha