Script Share - Engrave Text in Solid
Here’s a Python script for engraving text on a solid in relation to a surface edge (parallel to and ‘pointing at’ an edge) the hardcoded text is Arial but you should be able to change that at the top...
View ArticleOrder of commands in Script Editor
I am working on this plugin which has several grasshopper components. I have named them in an order from 1 to 10 in the script editor and the editor gives me the correct numerical order. When I use...
View ArticleRhino Plug-in auto startup
Hello, I’m looking for any guidance on how I might be able to perform a Python script Plug-in auto run on startup and the most straight forward way to do it. Is there something as easy as Maya, to be...
View ArticleMcNeel forgot about c#?
Hi all. I’m going crazy writing c# GH scripts component in 7 and executing them in 8… I’m starting to consider buying for my clients second-hand R7 licences or use other “solutions” to avoid using 8....
View ArticlePython – Set Linear Dimension Text Inline (Rhino 8)
Hello, In Rhino 8 (SR16), using Python in the ScriptEditor, how can I: Select an existing linear dimension Set its text to inline, positioned inside the dimension line, between the arrowheads Is there...
View ArticleCreating Custom Rhino Object Type (RhinoCommon)
Hi, I am exploring creating my own custom rhino object type. May I check if there is a better way to create custom rhino object types instead of using the CustomBrepObject class? I want to avoid a...
View ArticleScript Editor Dependencies
hi @eirannejad , How do I get dependencies like this? I had this script running correctly at some point but in a fresh install it doesnt fetch ifcopenshell. I recall that it fetched it automatically...
View ArticleCreate a Toggle for MouseOverHighlight setting
Hi all, It’s been a while since I’ve scripted, and I’m thinking maybe this has to be done using RhinoCommon (?) which I’m not versed in. Would anyone be kind enough to furnish a simple script that I...
View ArticleBrep.CreateFromSweep Gives Crooked Result
Surely I’m overlooking something simple here. Given all the very complicated stuff I do with RhinoCommon and Python, I’m not sure why this is whipping me so hard. Below is a code sample and the...
View ArticleClipping Drawings in Grasshopper and API access in R8/R9. Any updates?
Hi @rajaa Thanks a lot for all the work you’ve put into section tools over the years; the integrated workflow in Rhino 8 is already a big step forward from what we had. I wanted to ask about API plans...
View ArticleDynamically refer to a Dll in C#
In Rhino 8 (Net Core), GH C#, I use #r "C:\Program Files\Computers and Structures\SAP2000 26\SAP2000v1.dll" to refer to a Dll. I have more than 100 C# components, If the dll path changes, I have to...
View ArticleSmart Toggle for Selecting
Hi, I do a lot of drafting with Rhino and work with other peoples work constantly. My selection color is yellow. Many people use this color in their layers. I could change my selection color, but...
View ArticleConvert Python 2 to Python 3 Necessary?
Is this conversion of Python 2 scripts for Rhino necessary? I have the “convert_py2to3.py” script (Utility to convert py2 rhino-python files to py3 format) maybe from @dale ? Doesn’t give credit...
View ArticleMulti Unroll Crvs into
In need of something like @Helvetosaur‘s MultiUnroll_Mitch2017.py (7.4 KB) but for curves only. Ultimately what I’m hoping to do is select all the crvs I’ve used for piping wire-harnesses, and create...
View ArticleTip: Run Python scripts via drag-and-drop in Rhino 8
I recently discovered that Rhino 8.10+ will _-ScriptEditor _Run a Python script when the file is dragged from Windows Explorer onto a viewport. This offers a convenient way to execute scripts that...
View ArticleHelp with Eto
Hello, I’m creating a table to generate a sole scale. However, when I click the Calculate button, Rhino is closing unexpectedly. Any help or guidance would be greatly appreciated. import...
View ArticleVSCode for Rhino8 - Script-Sync, RhinoCode, etc?
Hey all, Getting back to using VSCode, and I’m looking to use mostly rhinoscriptsyntax (CPython) but need to also use RhinoCommon, RhinoScript, and possibly older IronPython in order to update. I’ve...
View ArticleFill gaps after solid creation
I have many cases like this, which comes after creating solids by extruding selected faces in the normal direction. I am looking for a robust approach that can detect and fill the gaps that are left...
View ArticleHide Slider Tick Marks
There might be times you want to hide the tick marks of a slider (you think it looks better, you don’t feel like dealing with tick-mark math, etc.). I didn’t think it was possible, but I just now...
View ArticleAny way to get component connected to a cluster input using python
Does anyone know if there is a way to get component connected to a cluster input using python scripting in grasshopper? What I’m trying to do is to get the actual component from within the cluster by...
View ArticleStruggles with text entity
From time to time, I’m foolish enough to think I can make text entity work. I’ve almost got it this time, but trying to set the font weight and style is holding me up. I’m writing a C# script...
View ArticleCtrl+G on Mac
Hi, I’ve been using Windows PCs, but recently I got a used MAC laptop and began testing C# scripting on Rhino and Grasshopper. I noticed that, in the C# script editor, Ctrl +F, Ctrl+W, Ctrl+Z,etc are...
View ArticleApplicationSettings.py module not found in VSCode
Getting an exception when I try to debug a script in VSCode. It opens the python file ApplicationSettings.py, and then tells me I don’t have the module. When I go to look up the file for a resource, I...
View ArticleExternal File Update Watcher
Hello, I’m looking for a reliable and fast way to know if an external file has updated. I’m having the same issues as this older thread: How to watch/synchronise a folder? I’ve looked at three...
View ArticleGetPoint drag behavior + exit when clicking outside viewport
Hi, I’m working on a custom keypoint move tool in Python using RhinoCommon. It runs inside a GetPoint with DynamicDraw, so geometry updates continuously while the mouse moves. What I’m trying to do is...
View Article