Created
February 16, 2019 19:09
-
-
Save StudioLE/73a6f47f6419ef0f0a4445699f11ea91 to your computer and use it in GitHub Desktop.
This file contains 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 | |
true_list = IN[0] | |
false_list = IN[1] | |
bool_list = IN[2] | |
result = [] | |
i = 0 | |
for bool in bool_list: | |
if bool : result.append(true_list[i]) | |
else : result.append(false_list[i]) | |
i = i + 1 | |
#Assign your output to the OUT variable. | |
OUT = result |
Author
StudioLE
commented
Feb 16, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment