ForEach

Example to show how to implement ForEach using parts

Simple script that visualises shell parts in a model as red and non-shell parts as grey.

Functions:
CountShell – takes variable “p” from ForEach loop and checks if the part’s element type is “shell”.

In this example, the model has 4 cubes made out of shells and one solid cube.