Rhino Layer Colour Assignment
I have a Rhinoscript code that takes a model built in a 3rd party application and converts it to a usable format for other personnel to use in Rhino. My issues comes when I want to add a new layer,...
View ArticleBest way to structure Python script with using Eto
What’s the best approach to building a script in a sense of structure and imports linkage? Here’s what I mean: let’s say my program will use the ETO interface with which you can select Rhino objects,...
View ArticleChange Named View in large number of Layouts / Detail Views
I’m lost with an attempt to change a large number of Detail Views all at once. I have a script from @willem which is useful when I’m working page after page. I found the script by @Dale to change all...
View ArticleTypo ViewCameraPlane
The example code for View Camera Plane has a typo import rhinoCSriptsyntax as rs view = rs.CurrentView() target = rs.ViewTarget(view) camplane = rs.ViewCameraPlane(view) plane = rs.MovePlane(camplane,...
View ArticleEditing block content via rhinoscript
I have a document with several annotations and block instances that contain annotations. I’ve been able to script replacing the font for all annotations via rhinoscript but I haven’t been able to...
View ArticlePDF batch printing - fully scriptable print command required
Last night I printed 90 separate single page PDF files with different file names in 12 minutes. Most of what’s visible in the PDF is generated parametrically in Grasshopper. The text on the layouts is...
View ArticlePythonScript equivalent of IsBox and BoxPoints?
Hi everyone. I’m trying to write some scripts operating only on “box-like” objects – which I currently define as right-angled cuboids, sometimes rotated so that they are not grid-aligned. RhinoScript...
View ArticleOverview of Python scripting in Rhino
I’m trying to get started with scripting Rhino, probably using Python, and I have so many questions. For example: • What is the difference between Rhino.Python (which has documentation Rhino.Python...
View ArticleMaximum (minimum) point of surface
Hi everyone For 1- find surface ClosestPoint to other Surface Or for: 2-find Maximum (minimum) point of surface Is there a command or api in Grasshopper or C #? For the maximum and minimum of a...
View ArticleEto.Form AutoSize
Hi @curtisw, is it possible for an Eto.Forms.Form to auto resize if it’s content size changes ? For example, i have a form which only contains one DynamicLayout. I want to add or remove a row to/from...
View ArticleScript Runs on Every File Open - Why?
I had this issue in Rhino 6 and now also in Rhino 7. I have ten or so scripts that I load into RhinoScript to load when Rhino starts. There is a single script that always runs when I open Rhino, so...
View ArticleSet options for .xyz-import with script and path \\ only
Hello guys 1st: i’m wondering what’s the rigth wording to define the “delimiter = space” and activate the “create point cloud” option. I tried this and other stuff, but the points are never loaded...
View ArticleUnset propert useage in Rhino.Geometry
Hi there, I came accross the documentation for the method Unset for example Rhino.geometry.Rectangle3d.Unset https://developer.rhino3d.com/api/RhinoCommon/html/P_Rhino_Geometry_Plane_Unset.htm and I...
View ArticleFor loop for creating discrete modules
Hi , I had a problem with my discrete modules When I put the code in the for loop, it looks like a grasshopper is mixing (manually, when I enter the base geometry, it is correct3.gh (124.1 KB) ). To...
View ArticleButton Moving vertical
Hi all, what’s the right syntax to create my button Move with the option Vertical inside? thanks, Roy 2 posts - 1 participant Read full topic
View ArticleArray of Meshes by PolyMesh Guid
Greetings, I’ve created o PolyMesh out of a PolySrf in a such way: meshes_group = rhg.Mesh.CreateFromBrep(PolySrf_Reference.Brep(), defaultMeshParams) polyMesh = rhg.Mesh() for mesh in meshes_group:...
View ArticleHelp Close-Open panel python Script
Hi, @Helvetosaur provided this great little python script which covers one click close and open of most of the panels. Panel_OpenClose.txt (2.7 KB) I’m trying to extend this script to include the...
View ArticleScripting Rhino Command -- Get rid of "Select Objects"
I’m trying to script the “_FillMeshHoles” Rhino command using Python. I’m adding objects to a variable and filtering them by “mesh” type. But when I go to iterate over the list of objects by calling...
View ArticleScripting input into command line (python)
I was wondering if there is a way to use a rhino command and use input from the script to fill in the command line input. For instance I have to use the “section” command and draw a section line at...
View ArticleC- python from Iron-python Environment
Hello, I wrote my python code with Rhino Common and I would like to call python 3 for optimization porpuses. How can I call C-python from Iron-python? I am not using Grasshopper, oderwise I would use...
View Article