Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TrimMasks.jsx explodes compound paths #11

Closed
Dekkerb opened this issue Apr 19, 2023 · 4 comments
Closed

TrimMasks.jsx explodes compound paths #11

Dekkerb opened this issue Apr 19, 2023 · 4 comments

Comments

@Dekkerb
Copy link

Dekkerb commented Apr 19, 2023

Really great script, have used many times. My issue: TrimMasks unfortunately removes most existing compound paths / groups.

(Sorry for Dutch interface in screenshots)

If this is unsolvable, a script that can group (or compound) items based on color would help. The workflow would then become: 1) select all countries 2) give each country a unique color 3) run TrimMask 4) Run script GroupbyColor or CompoundByColor.

Keep up the great scripts!!

image
image

@creold
Copy link
Owner

creold commented Apr 22, 2023

@Dekkerb the point is that the Pathfinder panel action releases compound paths. That's why you see this in TrimMasks.

As for combining colors, I have an unpublished script that does this. But it merges colors from all layers in the document, so I recommend copying only the objects you want to merge by color into an empty document.
UniteByColor

@Dekkerb
Copy link
Author

Dekkerb commented Apr 24, 2023

Wow, that is a great script! Would it be difficult to have the same script but instead of uniting, it would use the "exclude" function of pathfinder on the similar colored items? Those two scripts used one after another would completely solve the issue.

@creold
Copy link
Owner

creold commented Apr 25, 2023

@Dekkerb
Copy link
Author

Dekkerb commented Apr 26, 2023

Awesome! Great script for structuring my topography maps from Qgis. Thanks!

@Dekkerb Dekkerb closed this as completed Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants