Python script to join open curves in blocks
I have a set of closed curves that were made into blocks. Each block contains one closed curve. Somehow we broke all the closed curves open and they are now all open curve segments. I can edit the...
View ArticleScripting Languages Initialization fails due to security policies
Hello After opening the script editor, the following error message is displayed: Error occured during language initialization According to this documentation, the Python environment is initialized in...
View ArticleHow To Subscribe To Event Inside Module?
Hello, I have python code in a module that contains an OnMouseUp event (in a Custom Button class) In my main script, I want to subscribe an event to this module.CustomButton.OnMouseUp so that anytime...
View ArticleCan Blender and Rhino share Python scripts?
Anybody have either a quick-n-dirty or highly detailed answer to this? Maybe a fun rabbit hole 5 posts - 2 participants Read full topic
View ArticleUse the progress bar in a Python script
I have written a python script that exports thousands of objects to ai files and it takes a few minutes. I’d like to use the progress bar in my script, but I can’t quite seem to get it to work. Would...
View ArticleRuntimeError: CPU dispatcher tracer already initialized
Traceback (most recent call last): File “rhinocode:///grasshopper/1/68254ed6-a8aa-4c24-81aa-996a45fa29e6/72178cd4-4eea-44d3-bb37-5c15c2ae2232”, line 1, in File...
View ArticlePython method that provides the function of _EvaluatePt
It has been several years since i have created rhinoscript or rhino python script. I thought there was a method that you could get the point3d by selecting any object using any filter within a script...
View ArticleDrawing component with Python
Hello all! I’m the new one for the Python. I’m mechanical engineer and just want to learn python for Plant 3D that the software that I used for my job! Anyone please teaches me how to draw valve...
View ArticleCreating Rhino/GH Plugins in Script Editor
I finally got the initial round of documentation done for the Script Editor “Projects” that had previously made a video about here: Publishing Your Scripts as Rhino/GH Plugins Checkout these docs...
View ArticleIssue with TopologyEdgeList method 'SplitEdge'
Hello, I was wondering if I could find some help with an issue I have found with the SplitEdge method of MeshTopologyEdgeList. I have written the attached script to speed up the splitting of naked...
View ArticleVarious Rhinocommon.Input clarifications needed. Should be easy
Problem. How can I get this to work like Rhino, where the user can customize the options but still run the command, select objects etc def get_options(): # Retrieve stored values or set to defaults...
View ArticleRhino 8 Mac - python commands
Hello Mac-Users! I recently moved to/from the dark side of Rhino - I’m now a Mac user … again ! On Windows I had some python commands I wrote and used them very often. I’d be very glad to transfer...
View Article[WISHLIST / SUGGESTION] Wider scroll bars on Rhino8's script editor
It’s probably a low-priority thing, but I thought I’d make it known anyway, and y’all can throw it on the wishlist pile. I generally prefer scripting in the Rhino8 editor…except for the scroll...
View ArticleLoad saved WindowLayout from file with python
Hi There, I’ve recently discovered the WindowLayout command, to save and restore Toolbar/Panel layouts via the UI. Great work! now, I am looking for a way to load a saved WindowLayout with python. I...
View ArticleIssue: EventListener callback is not executed in ScriptEditor
Hi there, i am experiencing issues with Events in combination with the scriptEditor I have used the mechanism below to listen to view change events. When I execute the code in the old editor...
View ArticleScriptEditor crashing
For the last month or so I’ve been having problems with the ScriptEditor, both on its own and in the Grasshopper context. Whenever I open the Search & Replace panel, the window starts flashing and...
View ArticleScripting through field lines grasshopper
trying to code this in grasshopper, anyone has an understanding of how to get it done? 1 post - 1 participant Read full topic
View ArticleClick Events on Panel’s Children Not Processed Until After Form Closes
[Attached is a small script demonstrating the issue] [Please note, I misunderstood the problem slightly here in my original post. The problem is more general: buttons that are children of a panel that...
View ArticleBeforeTransformObjects event never called in CPython on mac
Hi? Please see the code below. When I run the script with the command !-RunPythonScript, it worked. But after removing the first line to declare using CPython ( #! python 3 ), it failed. Is overriding...
View Article