ScriptEditor CPython and Package Manager
@eirannejad I have a wish for CPython for rhino. Wish: when you install a plugin via package manager created using CPython I would like to trigger install of pip packages. Please make it possible....
View ArticleIssue with Executing Rhino Commands via Multi-threaded C# Server
Hello! I’ve encountered a problem when trying to execute Rhino commands using the RhinoApp.RunScript method within a custom C# server. To give some context, I’ve created a custom Rhino plugin that...
View ArticleSimple Rhino macro run through ghpython disables grasshopper control
Hi I have a ghpython script that I’m trying to create to import pdf into Rhino using Rhino macro but after running the script my grasshopper panning gets disabled and the only way to get it back is by...
View ArticleHelp: form keeps updating objects after closing, how to stop it?
Hi guys (@clement and @dale) I have made a script to manipulate objects with the keys and have extracted the essence of the problem here. Use the arrow keys LEFT and RIGHT to make the object rotate....
View ArticleRhino8 How to do Selective Clipping from a script
Is there a way to run the Selective Clipping added in Rhino 8 from a script? I want to clip only specified objects. Rhino 8 Feature: Selective Clipping Serengeti (Rhino WIP) Rhino 8 introduces two new...
View ArticleError: "object expired during a solution"
I have a Python 3 script running in Grasshopper (Rhino 8.10.24228) that sets the values of other components while running. This causes the predictable problem of expiring downstream components which...
View ArticleCommand for SaveAs
I hate to ask something this simple, but I have spent an embarrassing amount of time trying to do something that I thought would be easy and well documented. From Python, I want to save the project as...
View ArticleScript Pop-Up on Mac
Hi everyone, I work in exhibit design, so I often want to be able to visualize things as a visitor might. Hence, a need for something like the WalkAbout commands for Rhino that are on the Windows...
View ArticleWish: Keyboard shortcut for Fold Definitions (Level 1)
Continuing the discussion from Rhino 8, Script Editor - Collapse to Definitions missing: @Alain, I would like the shortcut for Fold Definitions (Level 1) in the Script Editor to be the same as that in...
View ArticleIs there an API function for setting startup commands?
Hi there! I am looking for a way to set the commands that run at startup in Settings>General with rhinoscriptsyntax or RhinoCommon. currently I do this via loading .ini settings with...
View ArticlePython & Visual Studio Code Documentation
Hello, I am trying in vain to configure Visual Studio Code to write Python scripts (v7). According to this forum, it seems that it is enough to create a Python environment and install Rhino-stubs. The...
View ArticleDelete points after using them?
I do want to adapt a script that I do found on this forum to my needs and I can’t find a way to delete the used points. If I do preselect all the geometries from the 3DM files attaches bellow, the...
View ArticleHow to check if an object is a part of a Block?
Is IsInstanceDefinitionGeometry not it? Or alternatively if Block Edit is active. 1 post - 1 participant Read full topic
View ArticleRunScript Headless
Hi, I’m trying to run commands in a headless document. However, it seems that the commands that work in a non-headless document don’t work in a headless document. In the example below, I’m being...
View ArticleSynchronising materials between files
Hello, Is there a way to import several materials from the materials library, and if there is already a material with the same name in the Rhino file, it is replaced by the imported material? This can...
View Article[wish] [rhino8 script editor] Collapse All Classes / Functions
Was just searching google to see if it was possible to collapse all classes and functions in Rhino’s python editor (I have a very long script and it must be a single file), and I found this thread....
View Article[ETO] Reset Height in DynamicLayout
When you first run a dialog class with DynamicLayout, if you don’t specify the form’s height, its height will be set perfectly to contain the controls. I would like to have the user press a Next...
View ArticleGH Python Script Execution Time Increases On Each Successive Run
I have a script that works on individual planar curves and creates hundreds of offset curves with Rhino.Geometry. This is done in an ghpython component, that imports custom python classes. Results are...
View ArticleExecuting Python 3 Script in C#
I’ve been successfully using Rhino.Runtime.PythonScript to run IronPython scripts directly in C#: private void RunScript(ref object a) { var script = Rhino.Runtime.PythonScript.Create();...
View ArticleRhino 8 HiddenLineDrawing - Issue with occluded sectioned segments
Hello Everybody, @GregArden and @rajaa, I fear some of the gremlins you were able to fix here Rhino 8 HiddenLineDrawing - Issue with OccludingSectionOption - #13 by GregArden might have come back...
View Article