Quantcast
Channel: Scripting - McNeel Forum
Browsing all 4120 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article


Image may be NSFW.
Clik here to view.

Rhino 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 Article


Python 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 Article

Tangent 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article


Image may be NSFW.
Clik here to view.

Batch 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 Article

Image may be NSFW.
Clik here to view.

Using 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article


Image may be NSFW.
Clik here to view.

Is 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 Article


Image may be NSFW.
Clik here to view.

Python - 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article

Cull 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 Article

How 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 Article


Message: '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 Article

Image may be NSFW.
Clik here to view.

Brep.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 Article


Image may be NSFW.
Clik here to view.

Python - 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 Article

Exporting 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 Article


Runtime 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 Article

Image may be NSFW.
Clik here to view.

Help: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 Article

0 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
Browsing all 4120 articles
Browse latest View live