Quantcast
Channel: Scripting - McNeel Forum

Grasshopper Python 3 component stuck on "Installing Python runtime"

Rhino 8.32.26160.13002, macOS, Apple Silicon. Diagnostics already done: Runtime py39-rh8 fully deployed (163 MB), binary python3.9 --version → OK (3.9.10) No Gatekeeper quarantine on the binary (xattr...

View Article


AddOptionList silently drops punctuation values from keyboard list

I’m seeing what looks like an inconsistency with GetOption.AddOptionList. In the sample below: adding list values containing spaces fails, which I expected adding list values without spaces and with...

View Article


Image may be NSFW.
Clik here to view.

PDF import: "Import" behaves different from "-Import"

I am working on a script to import PDF files. Using the Import command to import a PDF it works well, with both mm or inch templates. Using -Import works well when importing into a mm file, while...

View Article

Code request: Mapping Widget toggle

Hello, this is a code request to help automate a workflow that I’m doing a lot of recently. It has to do with triggering the Mapping Widget when a target object is selected, checking for box mapping...

View Article

List currently defined keyboard shortcuts

I realized I kept defining keyboard shortcuts that I already had, simply because I had forgotten about them. So I made a small script to print the full list. The output uses tabs, so it should be easy...

View Article


Add/remove alias silently resets Display Mode list at next check

Hi McNeel team, after a significant debugging session on some of our internal code, I seem to have find a really specifically odd bug. I have had Claude narrow it down through the MCP-link and have...

View Article

Image may be NSFW.
Clik here to view.

SubObjectSelectionEnabled works for polylines, not solid faces

The attached 3DM file contains two solids, two polylines, and four TextDots. The script uses the TextDot positions as the four viewport pick positions. I am calling ObjectTable.PickObjects with...

View Article

Rhino 9 - Create Detail From Shape

Hello, inspired by the new SetDetailBorder command, here is a Python script for Rhino 9 that creates a detail based on the shape options provided via the command line. I hope you find it useful....

View Article


Image may be NSFW.
Clik here to view.

Set Texture Blend Amount (Percentage) in RhinoCommon?

Subject: How to programmatically set Texture Blend Amount (Percentage) in RhinoCommon? Hi everyone, I am currently developing a Grasshopper plugin using C# and I’m working on a custom baking component...

View Article


The created surfaces do not join (Rhino 7 - Griddle 2.0)

Shaft_Collar.py (9.5 KB) Hi every body, I have created some surfaces in a small python script but it cannot be joined in Rhino. The purpose is to join them, create a mesh with no open edges, modify...

View Article

RhinoCode build now requires ruiPath

An existing project that previously built without settings.ruiPath stopped working after updating Rhino 9 WIP. I reduced the current failure to a minimal .rhproj containing one Python command. Using...

View Article

Image may be NSFW.
Clik here to view.

Python Edit Suggestion

1 → : The activity code files can be placed on the side. Sometimes, for some projects, I need to review multiple files to make comparisons. ====== 1 ====== 2 → : The code collector seems not to have...

View Article

Image may be NSFW.
Clik here to view.

Installing Phyton Runtime failed

Hi everyone, while dragging in the Python 3 Script component (or the ordinary Python Script component) it starts loading a few things, then it comes to “Installing Python Runtime” and it this point it...

View Article


Image may be NSFW.
Clik here to view.

SyntaxWarning - py313-rh9\site-rhinopython\rhinoscript\utility.py:706

Hi there. Rhino shows this worning. C:\Users\XXXX\.rhinocode\py313-rh9\site-rhinopython\rhinoscript\utility.py:706: SyntaxWarning: invalid escape sequence ‘\s’ vector...

View Article

Image may be NSFW.
Clik here to view.

How do I change material base color image settings with Python?

Whenever I create a new material from a jpeg-image I drag onto an object in the rhino model, that image is by default set as the bitmap texture for the base color of a newly created material, named...

View Article


Image may be NSFW.
Clik here to view.

Scripteditor

Hi, Can i get some help with this? 8 posts - 3 participants Read full topic

View Article

Lags with mouse tracking on RhinoBeta

Hello, I am developing a « Move Normal to Surface » definition including a Grasshopper Python script. It is integrated in a larger definition aimed at facilitating jewelry design. Thanks to this post...

View Article


Issue forcing custom OpenCV version in Python3

I am having an issue with trying to downgrade a version of OpenCV for a Python3 script in Grasshopper, as I need some functions which have been removed in the newer OpenCV version that ships with the...

View Article

Handle keyboard in OnDynamicDraw without the command line receiving input

I’m trying to make a script/plugin for dynamically sectioning a mesh. I do this by overriding the GetPoint class and using its OnDynamicDraw. Then, I intersect the mesh with MeshPlane, to which I pass...

View Article

Issue with breakpoints and exception handling in the Script Editor

Hi All, When trying to run to a breakpoint after an Exception has been raised (and handled), the editor will not stop on the breakpoint. The example code below shows this. If I put a breakpoint on the...

View Article

Image may be NSFW.
Clik here to view.

Wrong displacement behavior

Hello ! I’ve recently discovered that, while getting a mesh, created with displacement map, for the first time, the API sees the mesh as before its transformation. This also happens each time the...

View Article


BETA - EditPythonScript

Hello everyone, In my system editpythonscript command is not initializing the editor panel. Also none of the commands or macros that include running this command doesn’t work either. Has anybody else...

View Article


Issue with Rhino.Geometry.Mesh.IsPointInside()

I would like to report this bug on mesh.IsPointInside(). I found other posts mentioning something similar, but they are all quite old and related to rhino 7 (I’m using rhino 8). To put it simple,...

View Article

Rhino8_PDF

New Text Document.txt (559 Bytes) Portrait_Color.pdf (193.3 KB) I am trying to create a PDF with Python. I have attached the script and the resulting PDF. I am not able to get it to output in color or...

View Article

Image may be NSFW.
Clik here to view.

Mesh Pipe script no output

Why does this script no longer work in Rhino 9 Beta? Multipipe experiment Grasshopper mesh_pipe.gh (6.4 KB) I’m using this script to create mesh pipes. 1 post - 1 participant Read full topic

View Article



Latest Images