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

GUID, RhinoScriptSyntax in GHPython

I am a little bit confused. Some RhinoScriptSyntax functions only returns GUID, But Objects like points, curves created in Grasshopper don’t have GUID before baking. So, how come one can use functions...

View Article


Image may be NSFW.
Clik here to view.

Script editor getting started

I am trying to get started with the new script editor but facing some issues, please see image: Show some error related to rhino and grasshopper libraries The time stamps in Rhino logs do not match my...

View Article


Is there an rs.createbrep function now?

Hi @piac Is there an rs.createbrep function now? I am currently using rs.coercebrep() and would like to switch if the CreateX is a better workflow I am referring to this thread:...

View Article

ReadFileVersion always returning -1

I want to get the Rhino version of the current file. Every file I try this on returns -1. Using V7. Any ideas? 4 posts - 3 participants Read full topic

View Article

Point style and size

Hi there! Please, need help to AddPoint or DrawPoint (points) with a given style and size. Have this to color the point: import lor the point import scriptcontext as sc import rhinoscriptsyntax as rs...

View Article


Is there a RH8 scripteditor alternative for "_ResetEngine"?

Hi there, During development of python scripts for Rhino I often want to reload my modules. in Rhino7 I included _ResetEngine argument in the rhino command like so: runPythonScript _ResetEngine...

View Article

RhinoCode ScripEditor for development of libraries

Hi, There are two key issues I have when developing python libraries and testing them on RhinoCode. I am using vscode and pip to install my local package to rhinocode python directory, since I am...

View Article

Enable "Snappy Gumball" through macro

Hello, I would like to enable the “Snappy Gumball” feature using a macro. Normally, I can toggle a checkbox option on or off by specifying “Yes” or “No”. However, this approach does not seem to work...

View Article


Image may be NSFW.
Clik here to view.

ScriptEditor egg-link Python3

Hi, Rhino Script Editor allows to embed egg-link using command: C:/Users/petrasv/.rhinocode/py39-rh8/python.exe -m pip install -e . This works for python only packages since it links directly to the...

View Article


Packages are not installed when requirements defined inside modules

Hi @eirannejad, when I define the requirements inside a module that is loaded by a main entry file, the required packages do not get installed. The example below throws a module "firebase_admin" not...

View Article

Python Scripts Copy Paste makes some error

I’m teaching students about Automating Architectural Design in Rhino + python. I wrote some well made codes with methods and break it into long code just to show them. But the problem window in...

View Article

How to write commands that do not count as action

Hello, I find that some commands are not taken into account as actions in command history. For example, if you use distance command in middle of other commands, and then perform undo or redo, distance...

View Article

Run Rhino command from python script

Hi there! I can run command on picked object from my python script: import rhinoscriptsyntax as rs #rs.Command(“WaterlineElevation=9.2 Symmetric=Yes Longitude=X”) result = rs.Command("_Hydrostatics ")...

View Article


Ghpythonlib.components in Rhino 8 help

Hi Forum! been finally dipping into Rhino8 as the new script editor looks amazing. Curious how to get help info on grasshopper libraries How can i access this in Rhino8 python editor? I see the help...

View Article

Manage assemblies in C# component

One other script editor question: In rhino 7 C# script editor we could right click on the editor and manage assemblies. Is there a way to do this in the Rhino8 GH C# script editor? Thanks! 4 posts - 3...

View Article


Referencing in-use *.gha assembly in C# ScriptEditor

Hello, I’ve got the following problem: I have got a plugin (*.gha with some more *.dlls) that is loaded in Grasshopper. Now I want to change some parameters that are not exposed via Grasshopper...

View Article

Image may be NSFW.
Clik here to view.

Open Teaching Material for Introduction to Programming with Python Rhino

Hello Rhino community! We wanted to share with you all the open-source and free teaching material from our course "AR-327"** which is an **hands-on programming course for designers (the coursebook)...

View Article


Python: Convert an open curve into a sweep or pipe with radius 1.5mm

Hi, I want to use python to convert any open curve into a solid pipe following the path of the curve. Making the object have a tube diameter of 1.5mm. Is this possible? Also is it possible to make...

View Article

Image may be NSFW.
Clik here to view.

Grasshopper Python3 Component Hangs on Initializing Scripting Languages

Just placing the python3 script component hangs Grasshopper. Moreover, if your rhino window is not fullscreen or if you launched grasshopper covering your rhino window - you would never know. A status...

View Article

Loading conda dev environment for rhino8

Hi there! I’m writitng to ask if there is a way rhino8 script editor can load the environment I created in conda for a project with specific Cpython libraries and their versions. I’m using a windows...

View Article
Browsing all 4152 articles
Browse latest View live