algorithmic modeling for Rhino
Good Day,
I've written a Python component that generates random numbers. The numbers are randomly chosen from range domains that are fragments of the starting, input domain.
The script works and outputs correctly, but each time I change the value of an input slider, the component turns red and throws the following exception:
R1 : Starting Range Lower Domain
R2 : Starting Range Upper Domain
X : Number of Domain Fragments
N : Number of Random Numbers to Output
I don't understand why!? When I reopen the component and rerun the script from the inside, it works again.
Any help is greatly appreciated. The script is attached.
Thanks!
Tags:
Hi Marc,
around line 59, you redefine the keyword "range". Next time the script runs, "range" will be the last variable, so a tuple. range(), or "calling the tuple range", will give an error.
Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by