Is there a RH8 scripteditor alternative for "_ResetEngine"?
Hi there, During development of python scripts for Rhino I often want to reload my modules. in Rhino7 I included _ResetEngine argument in the rhino command like so: runPythonScript _ResetEngine...
View ArticleEnable "Snappy Gumball" through macro
Hello, I would like to enable the “Snappy Gumball” feature using a macro. Normally, I can toggle a checkbox option on or off by specifying “Yes” or “No”. However, this approach does not seem to work...
View ArticleScriptEditor egg-link Python3
Hi, Rhino Script Editor allows to embed egg-link using command: C:/Users/petrasv/.rhinocode/py39-rh8/python.exe -m pip install -e . This works for python only packages since it links directly to the...
View ArticlePackages are not installed when requirements defined inside modules
Hi @eirannejad, when I define the requirements inside a module that is loaded by a main entry file, the required packages do not get installed. The example below throws a module "firebase_admin" not...
View ArticleHow to write commands that do not count as action
Hello, I find that some commands are not taken into account as actions in command history. For example, if you use distance command in middle of other commands, and then perform undo or redo, distance...
View ArticlePython Scripts Copy Paste makes some error
I’m teaching students about Automating Architectural Design in Rhino + python. I wrote some well made codes with methods and break it into long code just to show them. But the problem window in...
View ArticleRun Rhino command from python script
Hi there! I can run command on picked object from my python script: import rhinoscriptsyntax as rs #rs.Command(“WaterlineElevation=9.2 Symmetric=Yes Longitude=X”) result = rs.Command("_Hydrostatics ")...
View ArticleGhpythonlib.components in Rhino 8 help
Hi Forum! been finally dipping into Rhino8 as the new script editor looks amazing. Curious how to get help info on grasshopper libraries How can i access this in Rhino8 python editor? I see the help...
View ArticleManage assemblies in C# component
One other script editor question: In rhino 7 C# script editor we could right click on the editor and manage assemblies. Is there a way to do this in the Rhino8 GH C# script editor? Thanks! 4 posts - 3...
View ArticleReferencing in-use *.gha assembly in C# ScriptEditor
Hello, I’ve got the following problem: I have got a plugin (*.gha with some more *.dlls) that is loaded in Grasshopper. Now I want to change some parameters that are not exposed via Grasshopper...
View ArticleOpen Teaching Material for Introduction to Programming with Python Rhino
Hello Rhino community! We wanted to share with you all the open-source and free teaching material from our course "AR-327"** which is an **hands-on programming course for designers (the coursebook)...
View ArticlePython: Convert an open curve into a sweep or pipe with radius 1.5mm
Hi, I want to use python to convert any open curve into a solid pipe following the path of the curve. Making the object have a tube diameter of 1.5mm. Is this possible? Also is it possible to make...
View ArticleGrasshopper Python3 Component Hangs on Initializing Scripting Languages
Just placing the python3 script component hangs Grasshopper. Moreover, if your rhino window is not fullscreen or if you launched grasshopper covering your rhino window - you would never know. A status...
View ArticleLoading conda dev environment for rhino8
Hi there! I’m writitng to ask if there is a way rhino8 script editor can load the environment I created in conda for a project with specific Cpython libraries and their versions. I’m using a windows...
View ArticleClosing viewports
Hello, I wonder if there is any method for closing viewports? I have some scripts for cleaning and managing documents generated from some other models, like removing unwanted entities and so on. And...
View ArticleAccessing the Texture Mapping Widget through Python?
Hi there, i’ve written a script that when you select a block the script recursively checks if the block is within another block then it keeps checking until it reaches the geometry level. I then apply...
View ArticleReading a CSV file on MAC - SOLVED
Hello, I am unable to use simple CSV python reader like the Rhino sample…: import csv import rhinoscriptsyntax as rs def CSVbuilding(): #prompt the user for a file to import filter = "CSV file...
View ArticleCurve.OffsetTangentToSurface direction isn't predictable
Hello, I’m tinkering with a script that’s meant to create a custom ribbon around a 3D edge, for which I’m extruding a curve using the new Curve method OffsetTangentToSurface(Surface surface, Double...
View ArticleInteracting with IGH_DocumentObject from Python (Rhino8)
Hi, I’m trying to set the value of a Number Slider using Rhino 8 in Grasshopper. I can do this successfully using a script component running Python2, but Python3 fails running the same code. It...
View ArticleRunning Script Faster in V8
Hi guys, Is there any way to make this script run faster in Rhino 8? It runs a little slow when you have 30-40 layers like I do. This script randomizes all layer colors, excluding black. Thanks in...
View Article