algorithmic modeling for Rhino
Hi Guys!
I'm new on ghPython and I want to generate a random list with r.uniform
everytime i receive this answer on the print window
[<bound method random.gen of <__main__.random instance at 0x00000000000000F0>>]
and this answer on the output:
IronPython.Runtime.Method
Ccould help me please?
Tags:
Couple of things. You really shouldn't need to write a class for something this simple. See the attached file for an example. Secondly there are a bunch of mistakes in your code (__ini__ is actually __init__, self should be used as the first argument for a class method, class names should be unique i.e. not the name as a standard module, passing global variables directly to a class method is a no no etc.) So if you are trying to learn classes you should probably have a look at some tutorials to get the basics down. Hope that helps..
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