Quantcast
Channel: Scripting - McNeel Forum

Image may be NSFW.
Clik here to view.

Clarity on creating PolyCurves from Lines and Arcs in Rhino Common

I’m looking for some advice on how to become a better user of the Rhino API. I have several curves that are collections of lines and arcs (can’t be too uncommon) and I would like to preserve the...

View Article


Image may be NSFW.
Clik here to view.

Script to search for specific geometry in rhino document

Hello dearest RhinoGrasshopper community, Currently working on an “instant LCA calculator” to get live results as we model in rhino. The first part of such a development requires me to extract...

View Article


Is this possible to Squish and Squish Back multiple surfaces at a time?

To Texture on bend surfaces sometimes we need to use Squish and Squish Back option.But as far I know, we can use squish and Squish Back option only on one surface at a time.So it’s take time. 1 post -...

View Article

Image may be NSFW.
Clik here to view.

Python Control of Picture (Srf) Transparency Settings

I am trying to automate the control of the transparency within a PNG and am unable to this with the implements that I’m aware of. I’ve built tools to automate the production of transparent PNGs where...

View Article

Image may be NSFW.
Clik here to view.

Eto - Place a drawable over another drawable

I have two drawable rectangles one that’s the background and the other that will act as the buttons. I want to place the button inside/over the background rectangle, what’s the best way to do that....

View Article


RhinoCode editor freezes any Rhino instance with RhinoCode open

With multiple Rhino instances open, any Rhino instance with the RhinoCode editor open will freeze if one Rhino has a python script running in its RhinoCode editor. This does not appear to happen with...

View Article

TryFitCircleTT Not Working As Expected (Rhino Common)

I am getting no change to input circles with TryFitCircleTT, when I am expecting either the same general behavior as the CircleTT Grasshopper Node (albeit with a change in circle center instead of a...

View Article

Export temporary .stp and autoload in Bambu Lab Slicer

I started writing a script to load a brep directly in bambu studio. A temp step file is saved and opened with bambu. What I would like to do is that if bambu studio is alredy running to just inject...

View Article


Pickle in python3

Back before Rhino8, we used to rely on pickle to easily serialize custom class instances to file. This was very useful for complex scripting applications. With R8/py3, it is no longer possible to...

View Article


Image may be NSFW.
Clik here to view.

Change view settings via a script

I wish to access this specific setting via a script, so I can enable/disable it. I have been in here Rhino.Display.DisplayModeDescription.GetDisplayModes() And in there I tried the...

View Article

Image may be NSFW.
Clik here to view.

Obtain Intersection Geometry of Visible Elements with View Cropbox

Could someone help me with the following? I’m trying to create a script Grasshopper/python/Dynamo for Revit that retrieves the geometry of all visible elements in the active view (excluding rooms),...

View Article

Split panel By choosing the recovery value

Hi, I’m trying to make a phyton script (to use directly in rhino instead of using grasshopper) to split a panel by being able to choose the recovery value. I can’t really find an effective solution.....

View Article

Dimension Masking via python

Trying to set the mask to solid color via python (Rhinocode/ScriptEditor in R8 py3.9) - not able to get where I need to go. Editing the style or dim itself is acceptable. Appreciate the help! 4 posts...

View Article


How to compile Python 3 (.py) in Rhino 8 with RhinoScriptCompiler.exe

Hello, How do I compile a Python 3 script (.py) in Rhino 8 using RhinoScriptCompiler.exe. It fails to run after I compile it, any suggestions? Thanks to all 3 posts - 2 participants Read full topic

View Article

Bug script python polyline

Hello, I am currently working on a Python script in Rhino and have encountered an error that I am unable to resolve. The error message is as follows: TypeError: an integer is required in method Void...

View Article


How to convert SubD to NURBS in RhinoCommon without using rs.Command?

Hello, I would like to convert a SubD object to a NURBS Brep in Rhino using RhinoCommon, but I want to avoid using [rs.Command(“_ToNURBS”)] or any command-line calls. Is there a direct method or class...

View Article

BUG - open3d crash rhino

Hi @eirannejad One of the recent updates causes Rhino to crash on Mac when using Open3D. I’m not sure if it’s an Open3D or Rhino issue, but the code works fine on Windows. I’ve tried reinstalling the...

View Article


Image may be NSFW.
Clik here to view.

Python 3.13 in Rhino WIP

Next build of Rhino WIP is going to deploy Python 3.13.3 Why? Python 3.9 currently shipping with Rhino 8, is going to hit End-of-Life towards the end of 2025. One of the major wins for having Python 3...

View Article

Image may be NSFW.
Clik here to view.

Legacy RhinoScriptCompiler

I’ve had a decent amount of success using the RhinoScriptCompiler. Compiling the.yak packages works well and the scripts all run. But sometimes, seemingly at random, the entire plugin stops working,...

View Article

How do I install a Python package from a URL in Rhino 8 Script Editor?

Hello! I’m trying to install PyTorch in Rhino 8 using the new script editor, and I want to install it from the official PyTorch URL for CUDA 12.6. https://pytorch.org/get-started/locally/ In my script...

View Article

Image may be NSFW.
Clik here to view.

Grasshopper 2 Script Components in Rhino WIP

First working draft of Grasshopper 2 Script Components are in Rhino WIP. This is the first iteration of these components and there is still a long road to feature parity with Grasshopper 1. But they...

View Article


ETO Forms: Make a component have its natural width

I could have sworn there was a property I could set on to force components to have their natural width (based on content) and not fill the column’s width. Like if I have a drop-down on row 1 and a...

View Article


Image may be NSFW.
Clik here to view.

Extend Multi Sides with Preview (Python)

Hi everyone! I’ve been meaning to create this Python script for Rhino for a long time, and I finally made it happen. It lets you extend surface edges quickly and easily, featuring a live preview so...

View Article

Image may be NSFW.
Clik here to view.

Proper way to convert ghpy method compiling to Rhino 8 method

Hi I have series components created using Rhino 7 and the method below compiling the python codes to ghpy. Seems like now Rhino 8 have Rhino Script Editor and all-Rhino Python compiler what is the...

View Article

Changing Text in Blocks

Hi, First, when changing layer, font or even exploding text in a single text everthing works as expected, but in a block only layer is changed but font and exploding text is not changed. How to get...

View Article