Change Linked block LayerState
Hello, Is it possible to set the LayerStyle property of a linked block instance definition on Rhino 6? By looking at online api documentation, instance definition’s LayerStyle property allows both...
View ArticleDoublequotes for variables
Hi, I wrote a very simple script (actually my first transit from macros to scripts) to render specific viewports. It should let you pick a folder and render the views into it named accordingly....
View ArticleCreateObject("Rhino3.Application") hangs on Windows 10
On Windows 10, I can’t connect to Rhino3 for External Access. Task manager shows a process for Rhino3.exe -Embedding Do I have to regsvr32 some dll? This results in the error “ActiveX component can’t...
View ArticleScript to calculate total area of faces in layer
I often have to calculate the total area of surface, polysurface, extrusion of each layer. Can anyone help me create a python script that calculates the total area of the faces in the layer and writes...
View ArticleHyphenated command doesn't prompt options (_-SaveSmall)
Hello, I’m having a problem with the “_-SaveSmall” command. As I understand, it should prompt options, notably “Version”. In my case, it does not. The goal here is to specify a Rhino file version to...
View ArticleState of a menu item don't saved after restarting Rhino and Grasshopper
Hello In this example of @chanley Handle/update the checked state of a menu item Scripting Thanks! I was missing the step of storing an attribute for each independent variable and doing something in...
View ArticlePrint List of Doubles in C# using Grasshopper
(topic deleted by author) 1 post - 1 participant Read full topic
View ArticleFast random integer (not duplicatenumber)c#
private void RunScript(Interval domain, int count, int seed, ref object A, ref object B) { System.Random random = new System.Random(); var s = (int) (domain.Min); var e = (int) (domain.Max); dynamic...
View ArticleCopying layers from one file to another in C#
I’m probably out of my depth here, but I came across code that lets you insert one block from within another file, which I think is awesome. Props to the user archimax for this gem. Adding a block...
View ArticleCopy layer attributes to new Instance Definition by layer name in C#
Related to my last post, a user called archimax wrote some awesome code that lets you insert a single block from an external file into your model. The only downside is that it seems to require that...
View ArticleGrasshopper C#, if Rhino is closed
Hi, I’m wanting to send a signal to an online database when rhino is closed from one of my grasshopper components, so just before it closes it would send this signal, is it possible? Thanks Mitchell 1...
View ArticlePython Offset on Surface corner style
Hi, if anyone is reading, i am trying to offset curve on surface in a loop here. however, the corners always look like this…how can i fix it so that the corner turn continuously?...
View ArticleSaving a specific area of the viewport as an image
Hi, I’m looking for a way to save as a .jpg or .png file the elements that appear inside a specific area of the viewport and at a custom resolution . I was thinking about a Python script in...
View ArticleHow can I replace a nested "Instance Definition" Object in C#?
I have library of blocks and inside my blocks I have others (a few hundred). I’d like to add something to a C# script I’m already running on the Instance Definitions, to swap out the nested blocks...
View ArticleDuplicating a series of mesh faces
Hi all, If I want to duplicate a certain series of connected mesh faces from an existing mesh (I have the indicies) without actually extracting them from the original, is the easiest way to just...
View ArticleCreating a mesh object via GUID
I was wondering if someone could clear up something conceptually for me. I have been scripting in Rhino for a while via python but strictly within the rhinoscriptsyntax space. When venturing into the...
View ArticlePython script command for creating an Arc using Centre,Start,Angle
Hello, Is there a rhinoscriptsyntax command that replicates the _Arc command using the Centre, Start and Angle option through the interface or will I have to use Rhino.Command? The only 3 methods I...
View ArticleUnwrapping Mesh Texture to 2D
Hello all, I am continuing through on a personal project trying to unfold meshes with texture from 3d to 2D inspired by Jarke J. van Wijk’s Unfolding the Earth: Myriahedral Projections I have figured...
View ArticleName automatically paste To Clusters input(outPut)
i need Scripts(pythons or c#) name automatically paste To Clusters input(outPut)in grasshopper (when ClusterInput connect to entrance of component) Can someone help me? 1 post - 1 participant Read...
View ArticleGet unique planes from mesh object
In the file below, there is a mess-h… Composed of 26 faces, some overlapping, some inverted normals. In a few seconds I can draw four 3 and 4 point surfaces to create the clean planar surfaces that...
View Article