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

Can i send commands to rhino from another application (link to excel sheet)?

I was thinking of a script that zooms to a certain location in the rhino doc when i click a button in an excel spreadsheet… is this possible to do with VBA? 2 posts - 2 participants Read full topic

View Article


Image may be NSFW.
Clik here to view.

PyCAM for Rhino 3D?

There’s an open source 2-1/2D CNC toolpath generator called PyCAM which would be really neat if it were in Rhino3D. I checked all the files; it’s all Python. I think it’s enough for many small-mill...

View Article


Possibility of FaceColor and/or EdgeColor for mesh

Hi all, I am developing a feature that require the user to select some meshFaces/meshEdges and maybe set different categories for them. The data can be stored in UserString, but we want to make sure...

View Article

Run grasshoper script with python

Hey guys, it s possible to run a grasshoper script from a python file and run it without open the editor of gh? 2 posts - 2 participants Read full topic

View Article

Image may be NSFW.
Clik here to view.

Exit Grasshopper and Rhino from python script

I also got the problem described in the following threads: import rhinoscriptsyntax as rs rs.Command("_Exit") rs.Exit() don’t work when executed in an ‘if’ clause. If I click “Test code”, it works as...

View Article


Rhino 6: Numpy + Scipy

Hello here, I’m in a process of converting a Rhino 5 project to a Rhino 6 project, using IronPython, numpy & scipy. It is told everywhere that Rhino 6 being 64 bits, while (numpy,scipy) being 32...

View Article

Select objects from layers list

Hello community! I am working on a python script that allows me to automatically export big architectural rhino files to 3dsmax in the most convenient and fast way. I have problems exporting the...

View Article

Could someone explain: 1. Warning (CS0162): Unreachable code detected (line 90)

Hey guys, So, I am fairly new in coding, Rhinoceros and Grasshopper. I took an introductory course as part of a class in my Masters and I thought I was grasping the basics but then this error comes...

View Article


Open another Rhino 3dm file, but python still remain at the same directory

Hi everyone, I have 2 rhino 3dm files in different directories. I use some python script in 1 of the files to open another one (something like rs.Command(’-_Open “file2.3dm”’) However, I found that...

View Article


Image may be NSFW.
Clik here to view.

Rhinoscriptsyntax PopupMenu() bug - incorrect position with 4K screens

rs.PopupMenu() is supposed to pop up under the cursor position if no optional position argument is supplied. image728×263 6.51 KB I have a desktop with two HD (1920 x 1200) monitors (extended...

View Article

A generic error occurred in GDI+

Hi all, I have a python script that works both in Rhino 6 and WIP. But in BETA the message “A generic error occurred in GDI+” occurs ALMOST every time I use it. Is it a bug or can someone please give...

View Article

Vector Normal to Curve/Line in GHPython

Hi, This might be a more obvious one. I have curves which are not aligned to the standard planes (WorldXY, WorldYZ & World XZ). I am looking to move these curves along their normal vectors on the...

View Article

Message Box That can be turned off after a time

Hello, I have a python macro that takes a fair amount of time to complete and I’ve been sending messages to the command line asking the user to wait, which they may or may not see. Is there a way to...

View Article


Manipulation of grid size

how can i give the distance between one line to another line as one distance and from that line to one more line as different distance and that also can be paramterised 2 posts - 2 participants Read...

View Article

Python nurbCrv

hello! hope u doing very well! i need some help with python to generate a nurbsCrv from a list of points created in python script. any idea? thanks 2 posts - 2 participants Read full topic

View Article


Rhino 6 Python Editor shows no error messages like in Rhino 5

When running python scripts under Rhino 5, errors are shown in the Ouput tab. In Rhino 6 the execution seems to get stuck when there is an error, but no messages are displayed. I wonder if there is an...

View Article

Programmatic FBX Export Ignores extra flags?

Hi, I’m setting up a script to export FBX files in a certain way. However, I am not able to replicate the behavior of manual clicks with the script. The following python code snippet: import Rhino...

View Article


Image may be NSFW.
Clik here to view.

Dimension problem

Hello everybody, I am trying to add a dimension to a ply. The problem I have is that the dimension are not in the same direction. I am using AddAlignedDimension and if i add a positive number the...

View Article

Image may be NSFW.
Clik here to view.

Sel curve?

Hi. I have a question. How can I select a curve object and then find objects like it? image1065×745 3.44 KB 2 posts - 2 participants Read full topic

View Article

Modeless Form Close Button Crashes

Hi, I’m doing quite a bit of wheel spinning trying to close a modeless form with a close button instead of the user clicking the “X”. I’ve pasted in some sample code below. I’ve tried a self.Close(),...

View Article
Browsing all 5778 articles
Browse latest View live