Quantcast
Channel: Scripting - McNeel Forum
Browsing all 5938 articles
Browse latest View live

Switch layer visibility On/Off

Hi all. I do want to create a simple script to switch the visibility of the layer Default between On/Off running the same command. So if the layer Default is On when I do run this script, to switch...

View Article


PYTHON print Format ou F string?

Hello, My python code, works great from the script editor using f string, but when loading the file from rhino (a button) only the old type “format” is allowed… Is it a bug, or something that is...

View Article


Image may be NSFW.
Clik here to view.

Trouble running a python script

Hello, I was looking for a turntable script and came accross this wonderful script from Mark Wright that also exports as gif which is amazing but I can’t find out how to make those scripts work inside...

View Article

Image may be NSFW.
Clik here to view.

Remove normals from single mesh face

Hi, my progress stopped understanding the rhino behavoir as i’m unable to remove normals from a mesh i have exploded into single faces. In the example file the explode is done on the left with a...

View Article

Plugins built in 8 SR11 don't unpack python libs correctly

The other day I updated to Version 8.11.24254.15001. Until now, I was able to bundle python libraries inside of the plugin project in the ScriptEditor. When a Python 3 command was run, it would unpack...

View Article


Sorting an array of objects in Rhinoscript

I’m solving following issue. I have a set of objects (in my case 3 dimensional points) where I need to add some custom information to the object, measure the distance in Z axis from 0 and make a text...

View Article

The necessity of python.exe for non-Python 3 scripts

8.11.24254.15001, 2024-09-10 Continuing working on this problem, I noticed that python.exe appears in Task Manager - Details when any of the following is done (after starting a new and only instance...

View Article

Rhino 8 change Python 3.9 installation path

Hello, We have updated to Rhino 8 at our company, however our coworkers can’t use the new Python 3 scripts feature. When they try it, they get the following error message: Language Python 3.9.10...

View Article


-ScriptEditor Run scripts not printing to command history

8.11.24254.15001, 2024-09-10 Save a script such as #! python3 print("Hello, World!") When executed from the Script Editor, Hello, World! is printed to both the Script Editor’s Terminal and Rhino’s...

View Article


What's the best way to integrate with Rhino

Hey all, I’m interested in developing a plugin/scripting for Rhino in Python on macOS and Windows. Add custom properties(enum) for each object in the Rhino UI. Add a button some where to render each...

View Article

Input type hints not working on RhinoCode

Hello! In the current version of Rhino on Mac (8.11.24254.15002, 2024-09-10) I can’t set the input types hint on the dropdown list. I have the same problem on the C# and Python RhinoCode components. A...

View Article

Image may be NSFW.
Clik here to view.

BUG system.Data.ODBC is not supported

Hi, just update to 8.11.2425415001 2024-09-10 and my python script doesn’t work anymore. 2 posts - 1 participant Read full topic

View Article

Get Polyline Curve from Polyline[]

Hi, How do I get the PolylineCurve from Polyline? In C# component, it returns a Polyline Curve object when using the GetNakedEdges() method from Rhino.Geometry.Mesh Thanks 5 posts - 2 participants...

View Article


Image may be NSFW.
Clik here to view.

SetControlNetPoint issue

Hi, I have a problem when using the ControlNetPoint function on a SubD in C#. I’m probably doing something wrong, but I can’t figure it out. I found in the discussion that the procedure should be as...

View Article

Is there any python script that will group the collets individually?

1 post - 1 participant Read full topic

View Article


Accessing objects triggered by events

Hello, I am working on building an event handler that mainly writes User Text to objects given certain conditions. I have discovered that some of the events return a Rhino object, while others do not....

View Article

Script Grasshopper and Eto

I’m starting to create scripts with grasshopper and Eto, but I’m having some problems, I need help, I have some problems with Eto and Rhino closes when I try to run the preview import Rhino import...

View Article


How do I get the Translation of an Object?

I tried this without success: import os import rhinoinside try: rhinoinside.load() except: pass import System import Rhino file = r'..\3dm_files\a.3dm' doc = Rhino.RhinoDoc.OpenHeadless(file) for o in...

View Article

Duplicate, Untrim and Extend sub-object surface from GetObject

I’m using Rhino.Input.Custom.GetObject() with a filter for Surface and with sub objects allowed, and it seems to work. However, the results from the Objects() seems to be either Surface or...

View Article

Surface points not on surface

(topic deleted by author) 1 post - 1 participant Read full topic

View Article
Browsing all 5938 articles
Browse latest View live