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

MeshUnwrapper object freeze bug

Hi @Jussi_Aaltonen, using below snippet on a mesh object in the document leaves the object in a partially unselectable, invalid state. The mesh object can not be selected by clicking on it, however,...

View Article


Image may be NSFW.
Clik here to view.

Issue: Rhinocommon DimensionStyle.DrawForward Property cannot be set

Hi there! according to the documentation I should be able to set the ‘DrawForward’ property of an annotiation style using the code below. However currently it only returns the current value. cheers,...

View Article


CaptureToBitmap(settings) + TransparentBackground

Hi, The script below use ViewCapture.CaptureToBitmap(settings) to save bitmap from viewport. However the TransparentBackground property is at ViewCapture Class. I couldn’t find the Transparent...

View Article

Image may be NSFW.
Clik here to view.

C# Override an input value list items

Hello, sure a stupid question but how to dynamically override an input value list in c#? I’m trying to override a second list (specify the selection) similar to Excel Indirect. For example, if the...

View Article

How to convert Rhino.Geometry into RhinoObject?

Hello all, this might be a very basic question for everyone having more C# experience then I, but so far I havent found any tutorial explaining this: How can I convert for example a...

View Article


Introduction to Python in Grasshopper

Hi there, I am a young architect (traditional “building” architect, not software architect) and I have been using Rhino and Grasshopper for about 8 years now. I honestly love this software and I would...

View Article

Image may be NSFW.
Clik here to view.

Can rs.command() control buttons on the pop up window?

Dear the community, I encountered a problem of rs.command() and really need your help. The process of the work flow is rs.command('_-CSResultsPanel, echo = True) a window pops up in the pop up window,...

View Article

Image may be NSFW.
Clik here to view.

Exporting an SVG file at 1:1 ratio with python

I am currently able to save an svg file of my desired outline using the code below with ViewCapture, which I found in a previous post. The issue I’m having is that after the file is saved, it is...

View Article


Image may be NSFW.
Clik here to view.

Select mesh faces with naked edges, select vertices

My goal is to select all the vertices of each upper edge in a collection of meshes, so only the uppermost vertices that make up the top edge of a surface that is a mesh. My approach so far is to check...

View Article


Mesh face aspect ratio method in common?

From what I can tell, although you can select mesh faces by aspect ratio and extract them/collapse them in Rhino7, I can’t find the method for aspect ratio in Rhino common or python. Is this correct?...

View Article

Get RGB color code from object?

I’m trying to get the RGB colour code of an object that is extracted from a external source. When I select the object and use rhino.objectcolor it returns a long string of numbers and I cant see what...

View Article

Atom listener port python arguments

Hi all, I’ve been using the StartAtomEditorListener command on mac with great success, running scripts written in vscode and triggering rhino scripts from an external application. My current method is...

View Article

GetModelScale() asks for 3 arguments but only 2 provided in documentation

When trying to use the GetModelScale() function python asks for 3 arguments but only two are needed in the documentation, what is the third argument that it is asking for? The same question also...

View Article


Image may be NSFW.
Clik here to view.

Curve.FrameAt(). not equal to Horizontal Frame?

Curve.FrameAt(). (in c#)not equal to Horizontal Frame (in grasshopper)? in (vertical curves that is parallel to the Y or Z axis)? I think it is bug in new update Rhino7 Test in (Rhino 7,...

View Article

Image may be NSFW.
Clik here to view.

How to fit url image size into eto WebView

Hi there! I am using eto.forms.webview to display web images as a reference in my dialog. This works, but if the image is larger than the webview, I get scrollbars. I am looking for a method to scale...

View Article


Eto Add, Remove buttons dynamically

Hello How to remove the new button created? import Eto.Drawing as drawing import Eto.Forms as forms class MyDialog(forms.Dialog): def __init__(self): self.Title = 'Add and delete controls'...

View Article

Image may be NSFW.
Clik here to view.

Convert GUID into BREPS in ghpython with Grasshopper.Kernel.GH_Convert

Hi! I am trying to convert some surfaces in the “Walls”-list in my project. I´d like to use ghpythonlib.components (e.g., DeconstructBrep) on the geometry I got with rhinoscriptsyntax. I try to...

View Article


Image may be NSFW.
Clik here to view.

Divide polyline segments for lines over a specific length

I am looking for a way to divide polylines by segment length. The built-in divide command takes the entire polyline into account, however, I only need to subdivide the segments that are over a...

View Article

IPlane command implementation using python

Hi All, Can anyone tell me in python how I can create several Iplanes (infinite plates) from a selection of (planar) surfaces that I can later reference to split my target surfaces? Thanks in advance!...

View Article

Pandas for python

Hello, i have to modify an excel list, so i use Python with Pandas, Idon’t know if i’l find an answer on this forum, but I don’t know wich forum is the best to this kind of questions… do you know how...

View Article
Browsing all 5800 articles
Browse latest View live