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

Line vs LineCurve

Hi I am having some issue understanding the LineCurve class in the API and I wasn’t able to find more information on the internet. Would appreciate if someone can help expalin the purpose of the...

View Article


Image may be NSFW.
Clik here to view.

Contour change

I’m new to this morphia thing and I’m trying to learn as much as possible about it. Could anyone help me with a morphia involving solids? I want to select the single contour curve and turn it into a...

View Article


Setting WindowState in Excel

Hi all, Looking for some more help with trying to work with Excel in Rhino8. I have quite a few older python scripts that utilized Excel that I’m now troubleshooting to work with Rhino8. I have...

View Article

Python 3 installed packages folder location

Hi all, I have a general question about installed packages: When I use pip to install a module for example numpy. Where is the default folder path to the new py files created? pip list in python shell...

View Article

Trusted-host for python initialization

Hello, I am using grasshopper on my compagny environment which has some restrictions and only allow installation with some trusted-host option in python commands. So far I cannot use python script...

View Article


Image may be NSFW.
Clik here to view.

Do you know ways of extracting aligned edges loops from mesh?

mesh sample.stl (167.9 KB) In a mesh like this ^ we can see some parts being some generic triangulation, but some others being from obvious solid boolean operation from a revolved shape. Edges there...

View Article

Image may be NSFW.
Clik here to view.

Split PointCloud in parts by box-

I tried to script in python a split pointcloud option by using a minimum and maximum box coordinate. In comparison with the standard rhino remove from pointcloud option it is very slow. Is there a way...

View Article

Image may be NSFW.
Clik here to view.

CPython in Grasshopper - Not loading "pywin32" issues with xlwings

I am using python in grasshopper and at the end of the model script I am trying to send data to excel using xlwings. The issue I’m running into is that xlwings can’t load pywin32. Everything is...

View Article


Rhinoscript documentation error - ObjectPrintColorSource

Hi, Just to flag this inconsistency. The rhinoscript syntax menu help for: Rhino - RhinoScriptSyntax is missing “2 - By Display”. Shown in this version here, and accepted as an input for the...

View Article


C# script in ScriptEditor does not run in debugging mode with breakpoints

Hi, I hope I am missing something very basic here. In testing out some of my C# scripts in the Rhino 8 (8 SR15) ScriptEditor I have come across the following. The following very simple example code...

View Article

Image may be NSFW.
Clik here to view.

All of a sudden, python is broken for me

Literally every python script I have has stopped working today and I get the attached error every time (just a different location for the python script. The error message isn’t helping me figure it...

View Article

Select Group

Does anyone have code snippet how to select multiple groups in rhino return output would be a list of lists where each list contains the guids of objects in a group ? 5 posts - 3 participants Read...

View Article

Image may be NSFW.
Clik here to view.

How to Capture and Replay Undo/Redo Actions in Grasshopper Python?

Hi everyone, I’m developing a Python tool to help teachers and students track Grasshopper modeling history by recording and replaying undo/redo actions or saving versioned states of a definition. The...

View Article


Store Brep as a UserString or as a geometry UserDictionary

Hi, I have been using Rhino UserString (GetUserString SetUserString) quite a lot and find it super useful. Very often I store additional geometry such as Mesh by serializing mesh.ToJSON() How does it...

View Article

Change object layer by display color?

Hi, I’m importing a pdf file of a map. When I do this different types of element (building, grass, asphalt, parking…) has different display colors. I would like to use the color to move the objects to...

View Article


TriRemesh ScriptEditor Python Example

@DanielPiker Is it possible to run TriMesh in Rhino Python ScriptEditor (not Grasshopper) as a single function? If yes, is there any example for mesh with a fix boundary features? 9 posts - 2...

View Article

RhinoScriptSyntax - Section Style?

Just tried having a quick poke round, but couldn’t find anything - I’ve written a tool to set block properties to “By Parent” for things like linetype, print colour, etc, with commands similar to:...

View Article


Automating layout dimensions

I am working on a script to automate dimensions in layout. Attached is a work in progress… So far I am able to get the objects showing in a detail and get the start and end point of each edge. It sort...

View Article

Get the grip position of a surface without activating the grips?

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

View Article

Using _Inset with RhinoCommon?

Greetings, Can’t seem to find _Inset tool in RhinoScriptSyntax Is it possible to call it using RhinoCommon ? Note: _Inset is found under Mesh Tools, and it works with both Meshes and Surfaces. It...

View Article
Browsing all 5938 articles
Browse latest View live