algorithmic modeling for Rhino
Tags:
Hey Djorjde,
Thanks a lot for the reply, I just have a small question, i opened the script and its giving me this error
"Runtime error (MissingMemberException): 'LightException' object has no attribute 'Kernel'
Traceback:
line 4, in script"
Do you know how I might be able to resolve this?
Thank you again!
I would say you are using an older version of GhPython (0.5.1.0).
Try downloading the newest one from food4rhino.
ok my bad! now its running perfectly.
Thank you so much for this!
If its not too much to ask, can you briefly explain what you did in the python script. Since i'm a beginner I am still learning how
specifically the "if i != j:" command? is that some sort of cull boolean?
I can't stress how helpful this can be..
thank you
"i != j" is sorta cull: it's a condition.
It the broad context of upper "for loop", it means: take one mesh, and then intersect it with all the other meshes, but not with itself (because intersecting it with itself would result in intersection curves too).
The "newTree, GH_Path and AddRange" parts create the data tree, and add data to it's branches.
"if len(polyline) != 0:" is also a condition, and eliminates the results of those meshes which do not intersect among themselves:
If the intersection between two meshes is successful, then rs.MeshMeshIntersection() function returns those intersection curves, as a list of polylines. If intersection between two meshes is not successful, then the function returns an empty list (in contrary to what stands in the help file - None. It's a typo). We get rid of all these empty lists by applying the condition that only lists which length is not equal to zero, could be added to the data tree.
Wow that is pretty amazing!
Couldn't have imagined it any other way.
Its Mindblowing how helpful you've been
Thank you!
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