Bug? extracting rendermeshes from SubD recalculates them first
Hi @pascal I have started a script to extract and join all rendermeshes and when there are sub-d objects present then Rhino recalculates them all first, even if the objects are shaded. (And it prints...
View Article"Unwelding" mesh edges in Plankton C#
Hello, I am currently trying to better acquaint myself with coding with meshes by recreating the effects shown below: The logic basically creates a minimum spanning tree graph based off of a mesh and...
View ArticleCommunication between Rhinoscript and Python
Hello there, is it possible to run a python script with arguments from inside a rhinoscript?. For context: i am sitting in front of some long rhinoscripts where i am sure that i can rewrite some time...
View ArticleRealtime update
Happy New Year to all the Rhino users on the forum. I have a challenge for this year being new to Python and just feeling my feet now I want to write a script to do the following, please tell me if it...
View ArticleUsing cage edit while python transform of control object
Hi, I’m using python to adapt a control object (rebuilt circle) to a target curve, the object to modify is a torus. The steps are as follows. A torus is controled by a rebuilt circle ( 8 points degree...
View ArticleProblem after compile script
hi i have example script wich doesnt work after useing rhinocompiler. i would be appreciated your help to solve this problem. 5 posts - 2 participants Read full topic
View ArticleScripting FreeCAD from Rhino: FilletEdge case
I recently started working on a Rhino.Python script that accesses another CAD application / modeling engine via scripting without leaving Rhino’s GUI. The script is an alternative to _FilletEdge for...
View ArticleChange 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 Article