Grasshopper

algorithmic modeling for Rhino

Hi,
I think to have found a little bug.
Rhino Version: Version 5 SR8
Gh Version: 9.00069
Is this a bug?
I would expect that my python component give me back two values and not four, right?
Thanks!

Views: 330

Replies to This Discussion

Hi Mirko.

It's not a bug.
You are supplying a python list as an argument to a ghc.Random, which requires an Interval instead.
Create the Interval first:

import ghpythonlib.components as ghc

dom = ghc.ConstructDomain(0, 10)
test = ghc.Random(dom, 2, 2)
print test

Ty djordje!

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service