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

Image may be NSFW.
Clik here to view.

EarthAnchorPoint not set in Rhino 8.8

Hello , In Rhino 8.8 it appears that the EarthAnchorPoint command does not remember the Lat, Long, Elevation data when set and then queried. Is this happening to anyone else? 4 posts - 3 participants...

View Article


Copying surface from block in python

Is there a way to copy a surface from a BlockInstance without exploding the block? I’m generating a bunch of different blocks to design a facade, but for simulations I just need to copy/choose a...

View Article


Image may be NSFW.
Clik here to view.

Issue: Definition name changes unexpectedly when changing UpdateType

Hi there, I have a script (python/RhinoCommon) to embed all linked blocks in my model, export a specific InstanceDefinition and restore the state to before the script. I would expect that changing the...

View Article

Image may be NSFW.
Clik here to view.

Permission Issues with Python Script for Extracting and Saving Files

unnamed.gh (11.6 KB) I’ve been working with a Python script for the past few days. My goal is to find and read a file from within a rar file and save it to my drive for future use. However, I’m...

View Article

C# scripting: selection highlight lost when toggling option

I want to use GetObject.GetMultiple for the user to make a selection and be able to set an option, in this case an OptionToggle. In the code below everything works as expected, except when toggleing...

View Article


Python: NURBSSurface to Surface / Normal

Using Python. How do I get the normal of a planar NURBS surface? Is this possible? Also how to I convert a planar NURBS surface to a regular surface so the normal can be accessed? 5 posts - 2...

View Article

Image may be NSFW.
Clik here to view.

Question: Input Geo Keeps Moving Miles Away with no Transform

Hi, I had a look and couldn’t find a topic that answers this. I haven’t really Csharp-ed since Rhino 6 and I’m using Rhino 8. My brep input, which I’m inputting as GeometryBase keeps outputting miles...

View Article

Image may be NSFW.
Clik here to view.

Tree operations python Grashopper

Hi all, I am writing a simple script that takes a tree, and returns false if any of the items inside the list is false. The script is working with my test list #test = [[False, True,True], [True,...

View Article


Image may be NSFW.
Clik here to view.

Rhino 8 Script Editor - half of the error message

I’m running the latest service pack on Rhino 8, working on developing some new python3 modules. When the code hits an exception, the editor displays a clipped error message on the offending line as...

View Article


VScode to Rhino8 bug

Hi there, I love the new feature to be able to run VScode and visualise on Rhino8 through Rhinocode. The feature works well for me, however sometimes on running the VScode file, I get the error...

View Article

Image may be NSFW.
Clik here to view.

Python Line Perpendicular to Surface Normal

What’s the best approach to creating a line perpendicular to a surface normal so that it runs on the surface? 6 posts - 3 participants Read full topic

View Article

Python Relative to CPlane Origin

After using the following code, how do I add a line relative to the plane’s origin and X, Y parameters? If I try to add any objects they are relative to the WCS origin. plane =...

View Article

ETO GridView rhino 8 and python 3

Hi all, Trying to create a simple ETO modeless dialog in Rhino 8 and Python 3 with a GridView. I cannot seem to get the DataStore contents to render in the table. The data does exist, and adding a...

View Article


Creating a RhinoScript to add text to the saved filename

Hello all, I want to open .dxf files, edit them and then (by using a command) save them as .dxf again without selecting the file type over and over again. The standard save filetype is alsways .3dm...

View Article

Image may be NSFW.
Clik here to view.

Issue: RH8 ScriptEditor can't run my normal python code

Hi there, I am trying to runa py3 script in the scriptEditor that writes data to Google Firebase, but I get an unexpected error. The script runs fine if I run in python3.11 from the powershell,...

View Article


Lates update just broke my compiled grasshopper tool in RH8

The latest Rhino 8 (8.9.24163…) update is causing us problems with both Python2 in Rhino and with our compiled grasshopper tool (script works fine in player and grasshopper)…both won’t really work and...

View Article

Image may be NSFW.
Clik here to view.

How to change ScriptEditor c# icon in Grasshopper?

Hi How to change ScriptEditor c# icon in Grasshopper? icon.gh (7.3 KB) i use this method but Error=Cannot assign to ‘BitmapAsTextureFileReference’ because it is a ‘method group’ [38:5] @Mahdiyar...

View Article


View Capture to image script works in R7.0 but doesnt in R8.0

Hi All, Can anybody help troubleshoot this script? It works flawlessly in R7.0 but produces blank images in R8.0 CaptureLayoutToImage.py (2.4 KB) Thanks in advance, 1 post - 1 participant Read full...

View Article

Grasshopper Plugin running Python

Hi all, I’m new to python development and I’m wondering how it can be integrated into a Grasshopper plugin. Out team develops Grasshopper plugins for in-house use. One of our developers uses python...

View Article

Image may be NSFW.
Clik here to view.

Rhino 8, Script Editor - Collapse to Definitions missing

Dear Rhino-Team, it would be great if you could add the “Collapse to Definitions” option to the Rhino 8 Script Editor like it was with the PythonEditor Best Peter 1 post - 1 participant Read full topic

View Article
Browsing all 4176 articles
Browse latest View live


Latest Images