I want to unionize the members of each selected group, but the contents of the groups are a bit complicated (nested sub-groups and masks). For example, these groups:
Yes, I need to automate the Path > Union operation for the complex groups in the example above. It's very troublesome to do it manually, since the contents of the groups are kind of complicated
The manual method would be:
Ungrouping the group until there's no group anymore
If we encounter masked objects during the ungrouping, we will delete the masked objects but keep the mask object
Finally, we combine the objects with Path > Union operation and rename the new object with the name of the original group
The union part requires a command call to the main program from the extension.
The ungrouping and the deleting of the masked objects can be done in the extension.
"we will delete the masked objects but keep the mask object"
Does this mean restore the mask object to the canvas ? The reason I ask is mask objects go to <defs> as <mask> - do you want to convert the <mask> back to a normal object on canvas or just leave it in <defs> ?
The ungrouping and the deleting of the masked objects can be done in the extension.
Note this extension already exists under extensions/arrange/deep ungroup.
Extension works in 0.92, more recent ones may have it broken.
Also it does not affect masking or clipping or cloning.
If masking objects are to be kept and they don't have a specific fill attribute you can select by,
then a text editor may be helpful copy/pasting the mask definitions from the def section of your document into the actual contents.
Maybe -probably- possible with the xml editor, haven't checked it in practice. I'd use notepad++ because you can select larger sections there and not just individual items.
The multiple boolean ops extension could fit this task.
The Union operation of this multiple boolean ops extension (moini_ink / inx-pathops · GitLab) doesn't work on my example (please see the attachment on my first post)
Hi Everyone! I hope you guys are doing well
I want to unionize the members of each selected group, but the contents of the groups are a bit complicated (nested sub-groups and masks). For example, these groups:
Groups Before Union
After the union operation, they should look like this (the unionized objects are named based on the names of the groups):
Unionized Objects
I asked ChatGPT to create the extension, but it doesn't work at all. Please find attached for the SVG file and the extension
Could you guys please help me out?
Do you mean the equivalent of
Path>Union
but automated for groups or selections of objects ?Or something else ?
If you can describe how you would do it manually without an extension it may help.
Hello @inklinea !
Yes, I need to automate the Path > Union operation for the complex groups in the example above. It's very troublesome to do it manually, since the contents of the groups are kind of complicated
The manual method would be:
Basically, from this to this
The union part requires a command call to the main program from the extension.
The ungrouping and the deleting of the masked objects can be done in the extension.
"we will delete the masked objects but keep the mask object"
Does this mean restore the mask object to the canvas ? The reason I ask is mask objects go to <defs> as <mask> - do you want to convert the <mask> back to a normal object on canvas or just leave it in <defs> ?
"we will delete the masked objects but keep the mask object"
We need to convert the mask object into a normal object, to unionize it with the other objects in the group
Note this extension already exists under extensions/arrange/deep ungroup.
Extension works in 0.92, more recent ones may have it broken.
Also it does not affect masking or clipping or cloning.
If masking objects are to be kept and they don't have a specific fill attribute you can select by,
then a text editor may be helpful copy/pasting the mask definitions from the def section of your document into the actual contents.
Maybe -probably- possible with the xml editor, haven't checked it in practice. I'd use notepad++ because you can select larger sections there and not just individual items.
The multiple boolean ops extension could fit this task.
The Union operation of this multiple boolean ops extension (moini_ink / inx-pathops · GitLab) doesn't work on my example (please see the attachment on my first post)