Python - User Manageable Selection Set For GH Reference?
Hello, Using Rhinoscriptsyntax with rs.SelectObjects() and unselectall it’s easy enough to get current selections from the Rhino Document for GH to reference. However, I’m struggling trying to create...
View ArticleUse both ObjectLayer() & CopyObject(), Input Type GUID or Curve?
Hi I am using gh python on curves. ObjectLayer() to get input curves layer, and CopyObject() to copy them ObjectLayer() only works if I set input param to GUID, CopyObject() only works if I set input...
View ArticleHow to use Handlebar Editor (HBar) from Python
Hello, We’ve been successful in moving the control points of a surface using Python - but we were discussing how helpful it would be to pick any point on a surface and make adjustments directly (not...
View ArticleIs there a coerceblock()? how to manipulate Blocks in GH Python
I am able to import some Block instances into gh python, set type hint to GUID. and find block names with sc.doc = Rhino.RhinoDoc.ActiveDoc name = rs.BlockInstanceName(blockid) #print(name) sc.doc =...
View ArticleGetting Invalid sweep2 curves
I am using sweep 2 on this geometry which I have given below to get a surface from sweep. Dont know why its giving a false surface. my input model what I want What I am getting Here is the 3dm file...
View ArticleMake GH Python print() stay with buttons (disappear after a second)
Hi I have a button “z” connect to my gh python. My print() will only stay for half a sec after I pressed the button then disappear How can I make the print() stay, until the next time press the button...
View ArticleFrozen GH Canvas while importing STL with Pancake
Hi Everyone, I am working on a small GH file which should be able to switch between the paths of different .STL files to finally load the selected file. The basic idea is the following: a c# component...
View ArticleHow to make hole on surface chose of polysurface
I have many objects that need to make holes in the surface. The created object is the surface of the polysurface. Make the script to select the surface and enter the number of holes, the hole size...
View ArticleRename pageviews/layout by print order
import Rhino import Rhino.Geometry as rg import scriptcontext as sc import rhinoscriptsyntax as rs import math sc.doc = Rhino.RhinoDoc.ActiveDoc def RenameLayootWithSerialName(): layouts =...
View ArticleManaging Detail Callout Numbers via Python and CSV file?
Interested in creating automated detail callouts that can be synched both directions with .csv file. Example: Need to insert a Full Scale detail between existing 1/2” details 03 and 04. If there are...
View ArticleSending hatches inside all blocks to the back (draw order)
I’m looking for a little script that can send all hatches within all blocks to the back (changing every hatch’s draworder value). Can anyone give me any pointers? Thanks 2 posts - 2 participants Read...
View ArticleGot 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 Article