Python - Get Curve Degree
Hello, I’m trying to create simple ghpython component that returns the degree number value of the input curve list and stuck on how my input should be hinted/called. It appears it wants a guid or a...
View ArticleRhino 8 WIP - Python - Get Geometry From Model Object?
Hello, I have a simple python script that returns the curve degree from the input curves. I am primarily passing geometry as “Model Objects” throughout the script. If I use the G output of the Model...
View ArticlePython code - loft
Hi, I’m trying to create a simple code that creates a loft between 2 selected curves but I keep getting the following error: "Message: expected float, got Guid Traceback: line 2492, in EvaluateCurve,...
View ArticleTangent lines between two circles (curves)
I am looking for a method to detect tangent lines between two circles, i.e. to obtain the tangent lines which ‘TanIn’ and ‘TanEx’ provide. Is it exist at all or maybe there is a snippet of code for...
View ArticleHow to detect points in polysurface and surface vs surface connection?
I am a newbie to Rhino and developing a few analyses in Python with Rhinoscript. I have two questions, I would like to detect the points in the extrusion and surface vs surface connection for a...
View ArticleBatch thumbnail replacing for Rhino Materials
Hello everyone. Recently I’ve discovered there’s a possibility to replace a thumbnail of the Rhino Material File (.mtl). I have plenty of my own materials and replacing their thumbnails would make it...
View ArticleUsing RhinoCommon command in Python to access Brep Vertices
Hello, I am trying to use Rhino Python (Version 7) to access and translate brep vertices. It seems like there is a RhinoCommon command to access the vertex list that returns BrepVertex objects. These...
View ArticleHow to create surface mesh from intersection of plane and mesh
I am trying to use a plane to slice through a geometry, and generate a new mesh for the surface that represents the intersection of the plane and the geometry. I am using a clipping plane and getting...
View ArticleIs there any Way to turn off newly created layer in All layout and Detail
Sometimes we create some layers which we dont want to include in the previously created layouts, it is ok to manually turn off layers if we have 4-5 detail views only but for more than 15-20,we need...
View ArticlePython - Sum Of List Of Values
Hello, I’ve made this python script that converts values from specified units to desired units and it’s working as expected with the exception of the S output. I would like this output to return the...
View ArticleHow to make hole on surface chose of polysurface
I have many objects that need to make holes in the surface. The created object is the surface of the polysurface. Make the script to select the surface and enter the number of holes, the hole size...
View ArticleCull duplicates (Cull All option) implementation in C# script component
How can I replicate the functionality of Cull duplicates with the ability to set the options to either (cull all, average or none) in a C# script ? 4 posts - 2 participants Read full topic
View ArticleHow can you filter out surfaces with holes in them
Trying to select building polygons with holes in them. I’d like to be able to do it by deleting all surfaces with no holes in them or by deleting any with more than one boundary edge. An example of...
View ArticleMessage: 'module' object has no attribute 'LayerNames'
Hi I’m trying to figure out what’s going on with python, all my codes suddenly stopped running yesterday. I’ve narrowed down the problem to the rhinoscriptsyntax module, the error only appears when I...
View ArticleBrep.CreateFromSweep Erratic Results
I am having a hard time getting this curve to sweep. Is there certain criteria I need met to get a successful sweep ? It looks like each segment is pointing in different directions. I tired to use...
View ArticlePython - Struggling With Data Trees/Iterating Nested Lists
Hello, I’ve found quite a few topics on datatrees aka lists of lists in Python and stumbled across the tree helper functions which are great! However, I’m stuck on understanding how to loop within a...
View ArticleExporting to FBX with Layernames
It appears that 3ds Max, Maya and Blender all have an option for saving layer names on export to FBX. Rhino does not it appears. I see that there is a python script for doing so to CityEngine. Was...
View ArticleRuntime Error (MissingMemberException):
Hi everyone, I am new to Python scripting in Rhino 7. My first few lines already causes error, but these lines of codes can’t be simpler as below import System import Rhino import rhinoscriptsyntax as...
View ArticleHelp:Remove circles outside the surface boundary
Hello, I have written a program in C# script in Grasshopper that divides a surface into multiple small rectangles and draws circles with their centers at the midpoint of these rectangles. However, I...
View Article0 return value after compiling it in the GHPython
hi @piac Am trying to develop a plugin using Python code. I was able to successfully deploy ArchEval. In the development python is returning the value and working properly as desired, but after...
View Article