Skip to content

Instantly share code, notes, and snippets.

@Eneroth3
Last active January 1, 2020 10:40
Show Gist options
  • Save Eneroth3/73c97ddf8d35057be6b93667b667ef86 to your computer and use it in GitHub Desktop.
Save Eneroth3/73c97ddf8d35057be6b93667b667ef86 to your computer and use it in GitHub Desktop.

https://extensions.sketchup.com/extension/de35c3a7-187b-4fae-98cb-16f9a2a5b4e9/eneroth-random-selection


This extension was originally planned to be a Ruby Extension example but turned out to also be a rather useful little extension.

It is used to shrink the selection to a subset of the selected entities using a slider. One practical use case is to randomly select a subset of similar components to replace with another component. If you for instance have numerous identical trees in a model you can select them all, use this extension to shrink the selection to about half, and replace those with another differently looking tree component.

Soure code available at GitHub.

Activated from Extensions > Random Selection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment