Script input value work with Dynamo but not Dynamo Player

Hello.

I am working with a task which needs to input a object inner size and output a outer size value.

The condition is scheduled as following:
150 come to 168.3
200 come to 219.1

The default value is 150 in dynamo script.

However I found it failed in dynamo player. It is inconvenience if I need to run in dynamo as it need close and reopen for each run. Is there any solution?

I am using Revit 2019 and Dynamo 2.04

image

image

A little python will help :slight_smile: :


inner = IN[0]

output = []

if inner == 40:
	output = 48.3
elif inner == 50:
	output = 60.3
elif inner == 65:
	output = 73
elif inner == 80:
	output = 88.9
elif inner == 100:
	output = 114.3
elif inner == 150:
	output = 168.3
elif inner == 200:
	output = 219.1
elif inner == 300:
	output = 323.8

OUT = output

innermax.dyn (8.7 KB)

Thank you @jw.vanasselt

1 Like