Skip to content

Instantly share code, notes, and snippets.

@StudioLE
Created March 21, 2019 16:08
Show Gist options
  • Select an option

  • Save StudioLE/c6c67b39ca26a566ac9446885d9b4b0b to your computer and use it in GitHub Desktop.

Select an option

Save StudioLE/c6c67b39ca26a566ac9446885d9b4b0b to your computer and use it in GitHub Desktop.
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