Got stuck in Subdividing a surface
Hi all @AndersDeleuran @diff-arch got stuck in dividing the surface through scripting. The code is dividing the three surfaces but not others. No idea why. Requesting help. surfacedivideerror.gh (14.1...
View Article[BUG] - RhinoScriptSyntax Selection Methods No Longer Working? - R7 & R8?
Hello, I had the following script utilizing RhinoScriptSyntax to select/unselect objects in the Rhino document based on an input of GUIDs from within a grasshopper scripting component. All was working...
View ArticleOpen & Customize Plugin Script?
Is it possible to open a plugin’s script to rewrite for customization? (Something akin to opening a block editing it) 1 post - 1 participant Read full topic
View ArticlePython - 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 ArticlePoint Oriented Node in C#
Is there a way to implement the Point Oriented Node in C#? I would like to finally implement the node script (picture) as a C# script and this node is my first hurdle. 3 posts - 2 participants Read...
View ArticleNo output from surface.Split
RhinoDoc activeDoc = RhinoDoc.ActiveDoc; IEnumerable<RhinoObject> brepObjects = activeDoc.Objects.GetObjectList(ObjectType.Brep); RhinoObject object1 = brepObjects.ElementAt(0); Brep brepBody =...
View ArticleGHPython result as list of "other" then integer types
Hi all, I want to go through a list of integers [ x ] and when two consecutive integers are equal, I want to replace one of them by another one, picked randomly from another list of integers [y]. So...
View ArticleCopy folder contents from source directory to destination
I’m trying to write a script that will enable me to copy the contents from a source directory to a destination directory using a Boolean trigger. This is what I have. Something I scraped of the...
View ArticleReplace Layer Names using XML Data
I have a XML file containing the data of Layer Names and Part Names (approx 1,200 lines) … Is there any option to read that XML data and change the subjected layer name with the part name? Eg; LAYER...
View ArticleScript Component result null in Grasshopper rhino8wip
hi Why is the script component in Grassshipper rhino8wip null? But that cod in c# old components give correct result Is it bug in new script componet in RhinoWip? split refit null.gh (27.4 KB) private...
View ArticlemacOS MessageBox in python thread
The following script works on windows but not on macOS. Is there some workaround? import rhinoscriptsyntax as rs rs.MessageBox("main_thread") import thread def hello(): rs.MessageBox("thread")...
View ArticleHow to accelerate the computing speed? (cluster : C#+ZombieSolver)
Hi, I am building my own cluster with several C# components and a “ZombieSolver” from Kangaroo2. The primary purpose is to delete the repeated mesh face from the cluster input. I know the C# component...
View ArticleTrouble to Import with Python
Hi, I have a bug that i don’t understand. I store my script on my Dropbox so i can use it on 2 computer. import rhinoscriptsyntax as rs rs.Command('-_import ' + chr(34) + 'C:\Users\PC1\Dropbox\Rhino...
View ArticleCapture Semantic-Segmentation-Style Image in DotNet
Looking for some pointers / advice on how to capture a bitmap in DotNet (I’m using a C# component in Grasshopper right now) that displays a “semantic-segmentation” style image of a given viewport. I’m...
View ArticleGet subcurves of polycurve in Python?
Hi…, I’ve tried to start here: Rhino - Rhino.Python Guides. Surprisingly I don’t find a topic about curves. How to get the subcurves of a polycurve in Python? Thanks Michael 4 posts - 2 participants...
View ArticleControl Random Color's HSV values - particularly Saturation
Hey all, Working on a Python script, and I have a Random Color assigned to a new layer – but I’d like to be able to specify ranges of its HSV values (eg. Set a Pastel-type look with Saturation=15-25)...
View ArticleCannot escape from a Rhino Python script
Hello, I am trying to have a function that allows the user to pick some points. Maybe one point, maybe dozens. I used the example located here as a starting point: Rhino Guide Canceling a Python...
View ArticleProblems in rhinoscriptsyntax recognizing GUIDs
Hello everyone, I have been coding in python in grasshopper for about 7 or 8 months now, so I there is plenty I still do not understand. One of the biggest problems I have is getting rhinoscriptsyntax...
View ArticleVector Frame export script for Bongo Animation
I’m looking for a script that renders vector image files for each frame of an animation created with Bongo. Has anyone seen any tool like this? Thanks 1 post - 1 participant Read full topic
View ArticleRhino Coloring Surface
Hi all, I am trying to output some colored surfaces through a python function which I intend to use in a headless compute environment. import rhinoscriptsyntax as rs import scriptcontext import Rhino...
View Article