Created
March 21, 2019 16:08
-
-
Save StudioLE/c6c67b39ca26a566ac9446885d9b4b0b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import clr | |
| clr.AddReference('ProtoGeometry') | |
| from Autodesk.DesignScript.Geometry import * | |
| #The inputs to this node will be stored as a list in the IN variables. | |
| dataEnteringNode = IN | |
| list = IN[0] | |
| replace = IN[1] | |
| bool_list = IN[2] | |
| i = 0 | |
| for bool in bool_list: | |
| if bool : list[i] = replace | |
| i = i + 1 | |
| #Assign your output to the OUT variable. | |
| OUT = list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment