the error comes because there are no elements in the input IN[0]
try this way
set CropBox in 3DView.dyn (9.3 KB)