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

Image may be NSFW.
Clik here to view.

Python - Sum Of List Of Values (Converted To Model Units)

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 ? 1 post - 1 participant 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


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 current plugin I am developing using python is returning the value and working properly as...

View Article

Image may be NSFW.
Clik here to view.

Python - Grasshopper - Purge Third Party Plugin Components/Find & Delete

Hello, I have a pesky plugin component I can’t manually track down in my script. It is List Indices from Pufferfish (no offense to Pufferfish, great plugin!). I need to remove it from my script as I...

View Article

Easier way to extend and trim curves?

Is there a way to extend and trim a pair of curves by each other to where they would/do intersect? I’m hoping to be able to treat them like if you used the fillet command with a 0 radius. It’s just a...

View Article

Image may be NSFW.
Clik here to view.

Custom Script in Python for GH

Hello, community, I’ve created a custom script in Python that allows extruding a curve or surface on both sides, given multiple parameters and variations. I am relatively novice to scripting… How can...

View Article


Image may be NSFW.
Clik here to view.

Rhinoscriptsyntax error using AllObjects

Probably just another epic fail but it’s weird and don’t know why it happens. Can you please help me?I’m using Rhino 7 Version 7 SR30 (7.30.23163.13001, 2023-06-12) Commerciale 4 posts - 2...

View Article

Image may be NSFW.
Clik here to view.

Creating Nested Lists from a List of Points Based on Proximity

X is a list of 32 points I want to create a nested_list from list x including 4 sublists two containing 6 elements and two sublists with 10 elements by using proximity. @Mahdiyar 2 posts - 2...

View Article


What Function Is Being Called When You "Right Click Bake" GH Component?

Hello, I’m working with Model Views in Rhino 8 and while they do not work with the new “Bake Content” component nor do they work with Elefront or other baking components, if I manually right click on...

View Article

Changing programming language in new scripting component

The old Python and C# scripting components are gone in the newest WIP. The new Script component has Python3 enabled as standard. How can I change it to C#? Thanks a lot, Rudi 5 posts - 3 participants...

View Article


Image may be NSFW.
Clik here to view.

Class instance between two gh python components

Hi everyone, I met an issue with transferring class instances from one ghpython component to the connecting one: I created a class in the first component, and pass one instance to the connecting...

View Article

Scripting ZoomToScreenRect

Hi there, nothing seems to happen in my view when using ZoomToScreenRect in below example script: import Rhino import scriptcontext import rhinoscriptsyntax as rs import System def DoSomething(): rect...

View Article

Edge Or Curve Input for a component

Hi guys, I want to have a input in my component. This input can link to a edge on a brep or any curve like spline, line, arc, etc. Could anyone please tell me how to do it? I have ask chatgpt, it has...

View Article
Browsing all 5938 articles
Browse latest View live