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

Python 3 Script for GH: error in converting numpy eigenvectors (Rhino8)

Hi everyone. I’m nwew to Python so I’m sorry if the question may be silly, but I’m really doing my best. I’m trying to create a simple script that uses numpy in Python 3 script in GH. I want to...

View Article


SCRIPT_export with origin in dwg using cplane origin

Hi, I’m trying to code a command that would exportwith origin a slection of objects. The origin of the export has to be the origin of a given cplane (that would be called export) multiplied by -1. For...

View Article


Rhinoscript to convert files

I have zero coding experience and understanding of rhinoscript, but I have about 100 files that I need to convert from rhino 6 to rhino 7 and rhino 8. I have rhino 7 and 8 and can manually open and...

View Article

[python] Add hdr environment to double-sided material loaded from file

I have a double-sided material saved to an rmtl file. I want to load that in and then add an hdr environment texture to both front and back materials. I really have looked and looked and have found...

View Article

Image may be NSFW.
Clik here to view.

Issue rs.PlaneTransform() workinf different than expected

Hi, I’ve encountered an unexpected result when I use rs.PlaneTransform. I have a model with 2 blockinstances (77.3 KB); a normal one and a mirrored instance of the same definition. I use the script...

View Article


Visual Studio Code

Probably asked a gazillion times. Is it possible to set VS Code to run as Rhino’s Editor? Yupp, I tried RhinoCode and a few other things. I can’t even get VS Code to import the modules “Rhino” or...

View Article

Set unit system before ACIS export

Hi, we wrote a macro which saves every 3DM layer as an ACIS4.0 SAT file for export into Abaqus CAE. We now need to make sure that the units are always millimeters: How do we query the unit system of a...

View Article

Image may be NSFW.
Clik here to view.

Pycharm_auto sync instead of trigger?

Hi all, I’m just using an old image from a different question that I didn’t get an answer to. Anyway… Recently, I came across with this topic I saw that by using VS Code it automatically syncs the the...

View Article


Image may be NSFW.
Clik here to view.

How to open unsafe mode in C# for grasshopper

Trying to use pointer in C# for grasshopper, but it seems that Script Editor doesn’t have a unsafe mode button like VS Studio, and it is a failure to add “unsafe” before using pointer. So how can I...

View Article


Rhino 8.14 German: command SkriptEditor isn't starting the first time

Hi…, when I start Rhino 8.14 German, and type “SkriptEditor”, Rhino doesn’t know this command sometimes. After starting _ScriptEditor, closing the ScriptEditor-Window, typing the German “SkriptEditor”...

View Article

SDK mode for rhino 7 GH python components on mac

Hello! I am trying to figure out how to enable SDK mode on Rhino 7 GH python script components on Mac. Is this possible? Thanks! 1 post - 1 participant Read full topic

View Article

🐛 BUG - 8.14 - Rhino.UI.DrawingUtilities.BitmapFromSvg - No Longer Works

Hello, Prior to 8.14, the Rhino.UI.DrawingUtilities.BitmapFromSvg would ensure that a bitmap derived from SVG code with adjustForDarkMode enabled would modify the SVG fill/stroke color to properly...

View Article

Problem transforming box

I am trying to reproduce the function of rs.BoundingBox, but have it take RhinoCommon Geometry instead of object ids, and output a RhinoCommon box instead of just the corner points. Specifically I...

View Article


Image may be NSFW.
Clik here to view.

Find block & explode & group

Hi all, I did a short script in python in Rhino 5 before. It works in Rhino 5, but for some reason it doesn’t work in Rhino 7. I am not sure what’s wrong… Hope you can help, thanks The script is as...

View Article

Image may be NSFW.
Clik here to view.

Help needed: file is with 'unreadeable geometry'

Hi there, I have a file that has unreadable geometry. When I open the file, I get the notification below. Can anyone help me diagnose what the problem is with this file? Thanks, Tim...

View Article


Image may be NSFW.
Clik here to view.

Dim angle using a Python script in Rhino

I have to measure angles for many polyline or polygonal curve objects. The measurement method is similar to the one shown in the image below. I’ve looked into using the Dim Angle tool in the group,...

View Article

Trying to filter lines out of planar curves/surfaces selection

Edit: something went wrong there… Trying to filter lines out of the selection of planar curves and surfaces… So far not working import rhinoscriptsyntax as rs #planar closed curves plus planar...

View Article


Twist mesh with a Python script

Hello, The code below will import a mesh and create a line through the mesh. I now want to twist the mesh using the line as the twist axis. But all of my attempts have failed. If anyone could give me...

View Article

Rhino7: rs.GetObject stays in 'get' mode when used in an ETO form

Say I have a custom ETO form and I want the user to select an object. So, I use rs.GetObject. This works fine in Rhino8, but in Rhino 6 and 7, the command line stays in “get” mode even after the an...

View Article

Image may be NSFW.
Clik here to view.

Python3 in Rhino 8 execute function error

Hello, I’ve managed to execute a .py through Grasshopper in Rhino 8. The idea is that eventually the “x” and “y” inputs are float values from a larger workflow. When I run the file in a terminal...

View Article
Browsing all 5938 articles
Browse latest View live