NTT Posted June 12, 2023 Share Posted June 12, 2023 (edited) Hello Community, I am trying to subtract / clip some polygons but I keep getting the original polygons with the Result. see below. I tried to find out polygons that have similar area then remove the duplicates by original list indices, unfortunately, it didn't work. any clue how can i achieve the desired result below? Thanks Manually, I would select all, clip surface , then delete the resulted selected polygon (automatically selected from Vectorworks) Desired Result: p Script Result: Edited June 12, 2023 by NTT Quote Link to comment
Letti R Posted June 13, 2023 Share Posted June 13, 2023 Hello, there are some more things you can try. Put a "Delete" node after the two "Copy" nodes. The "Delete" Node deletes the objects only after the whole Marionette script was executed, so this should get rid of all the copied objects that remained because they were not changed. "Remove Duplicates" directly after the "Planar Boolean" node. Filter objects by their handles after the "Planar Boolean" node with the "Is Member" node. "Is Member" checks if the given item is in a given list. This works if you put the output of the "Planar Boolean" node as the "Item" and both "hCopy" outputs of the "Copy" nodes as the "list" input of the "Is Member" node. After that you can just use the "Filter" node. Filter objects with the wrong object type. This might not be of relevance here, but in my case there were some groups in the output of the "Planar Boolean" node for some reason. And this is how i put all of the things mentioned above in a Marionette network: If this does not solve your problem you could also upload a example file, so that we can provide better help. Regards, Letti Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.