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

Rhino8 ScriptCompiler C#

Hi All, ScriptCompiler does not compile code created in Rhino C# Is this possibility foreseen in the future? 2 posts - 1 participant Read full topic

View Article


Image may be NSFW.
Clik here to view.

Breakpoint when first executing my Python script

Hi all, I am fairly new to scripting and trying to debug this Python script that I wrote inside Rhino 8(cause I am using external packages and wanted to try CPython). My actual problem is that script...

View Article


_Dir and Surface.FrameAt() Differ

@stevebaer , all, after using _Dir _Flip, the frame extracted from a surface with FrameAt() differs from what Rhino _Dir displays (please see video). Is there a method to consistently get the...

View Article

How to add custom button with Py.script in Rhino interface

Hello people, Some years ago in Rhino5 I was able to add custom button with Py.script without any problem, Now in Rhino7 it don`t work, could you advice me tutorial for Rhino7 how to add this button,...

View Article

Linking 2D Blocks Automatically to Make Them 3D

Hi Everyone! I’m Studying on a new method to make 2D Autocad plans to convert them 3D in rhinoceros. First information; we have libraries of 3D models like tables sofas lockers etc… Then we have 2D...

View Article


Alternative to RhinoScriptCompiler for .rhproj files in Rhino 8?

In Rhino 7 when updating a plugin, I used a Python script that would dynamically build the command .py files, build the corresponding .rhc file, use RhinoScriptCompiler.exe to generate the .rhp file,...

View Article

Difference among Smash, Squish and ShapeMap

Dear all, I tried the three approaches for mapping curves onto undevelopable surfaces. It seems that ShapeMap works much better than either Smash or Squish. According to the author of ShapeMap, the...

View Article

Set Model Space Scale on Text objects

I would like to write a Rhino Python script that sets the Model Space Scale on selected Text objects to = 1. (because when I export Text objects to DXF for our plotting machine, the height of the Text...

View Article


Rhino 8 Crash with gh/python3 pytorch model evaluation

I am experiencing a consistent fatal crash when trying to evaluate a pytorch model. I am able to install pytorch successfully and use a pretrained model for evaluation inside of grasshopper...

View Article


Rational v. Non-Rational Surfaces

I am trying to force myself to learn the details of Rhino scripting (Python). The documentation is often vague and there are a lot of dead links....

View Article

rhinoscriptsyntax.IsTextDot() Bug?

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

View Article

Assign materials to layers with identical names

Can anyone help me writing a simple scipt that assignments materials to layers with the same name? 1 post - 1 participant Read full topic

View Article

ExplodeBlockInstance() Bug

@dale @stevebaer When using ExplodeBlockInstance() on blocks from a referenced worksession file, I am left with an unmovable, undeletable copy of the exploded geometry. Please see video below. import...

View Article


Image may be NSFW.
Clik here to view.

rs.PopupMenu location is wrong

Been meaning to post this for a long time… Here is the Help item for PopupMenu: So, if I don’t specify a point, it should popup under the cursor. If the script that calls PopupMenu is in a toolbar...

View Article

Why the PFN function return of upper code print 'Could not convert'?

import rhinoscriptsyntax as rs brep1=rs.GetObject("the one of both intersected srurface") brep2=rs.GetObject("the one of both intersected srurface") line=rs.IntersectBreps(brep1,brep2) start_point =...

View Article


Macro for setting current layer. Dimension layer?

I am trying to create an alias for changing the current layer with the macro _-Layer _Current _List _Pause _Enter, but the dialog box for choosing a new layer is never displayed. I am clearly doing...

View Article

Python3 : Running doctests

Trying to run doctest, I get the error : ‘RhinoCodePythonEngineIO’ object has no attribute ‘encoding’ I tried using unicode docstrings but no cigar. Is there a way to hack this without forking...

View Article


Rhino 8 Grasshopper script editor: VB not working

I have just installed the Rhino8 upgrade. Recent GrassHopper scripts from Rhino7 that contain VB code will open, but the VB code does not work. The VB editor shows up as ‘old’, without the usual...

View Article

Image may be NSFW.
Clik here to view.

Differences C# / C#Rh / C#Gh

doing tests in C# both in Rh and Gh and excluding all the superfluous code possible, it seems to me that in this case by reducing it completely to the bone, I notice that the rules highlighted in the...

View Article

Bug with rhinoscriptsyntax Arc helper functions

In Rhino 8 SR1 (8.1.23325.13001, 2023-11-21), rhinoscriptsyntax’s Arc helper functions seem to all raise a TypeError due to the TryGetArc function (TypeError: No method matches given arguments for...

View Article
Browsing all 5938 articles
Browse latest View live