3.3 Basics: Input and Output
Python nodes work like other nodes; they can take inputs and return outputs
Inputs and Outputs
#Boilerpate Code Always Goes Up Top! Don't forget it!
input_list_of_numbers = IN[0] #Here we take an input
output_list_of_numbers = [] #We create an empty list to output
for number in input_list_of_numbers: #Looping through input
new_number = number + 1 #Adding 1 to each number
output_list_of_numbers.append(new_number)
OUT = output_list_of_numbers #Here we output the new '+1' list
Kinds of Inputs and Outputs
4.4 Unwrapping Revit ElementsLast updated
Was this helpful?