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

Image may be NSFW.
Clik here to view.

Script Component result null in Grasshopper rhino8wip

hi Why is the script component in Grassshipper rhino8wip null? But that cod in c# old components give correct result Is it bug in new script componet in RhinoWip? split refit null.gh (27.4 KB) private...

View Article


macOS MessageBox in python thread

The following script works on windows but not on macOS. Is there some workaround? import rhinoscriptsyntax as rs rs.MessageBox("main_thread") import thread def hello(): rs.MessageBox("thread")...

View Article


Image may be NSFW.
Clik here to view.

How to accelerate the computing speed? (cluster : C#+ZombieSolver)

Hi, I am building my own cluster with several C# components and a “ZombieSolver” from Kangaroo2. The primary purpose is to delete the repeated mesh face from the cluster input. I know the C# component...

View Article

Trouble to Import with Python

Hi, I have a bug that i don’t understand. I store my script on my Dropbox so i can use it on 2 computer. import rhinoscriptsyntax as rs rs.Command('-_import ' + chr(34) + 'C:\Users\PC1\Dropbox\Rhino...

View Article

Image may be NSFW.
Clik here to view.

Capture Semantic-Segmentation-Style Image in DotNet

Looking for some pointers / advice on how to capture a bitmap in DotNet (I’m using a C# component in Grasshopper right now) that displays a “semantic-segmentation” style image of a given viewport. I’m...

View Article


Get subcurves of polycurve in Python?

Hi…, I’ve tried to start here: Rhino - Rhino.Python Guides. Surprisingly I don’t find a topic about curves. How to get the subcurves of a polycurve in Python? Thanks Michael 4 posts - 2 participants...

View Article

Control Random Color's HSV values - particularly Saturation

Hey all, Working on a Python script, and I have a Random Color assigned to a new layer – but I’d like to be able to specify ranges of its HSV values (eg. Set a Pastel-type look with Saturation=15-25)...

View Article

Cannot escape from a Rhino Python script

Hello, I am trying to have a function that allows the user to pick some points. Maybe one point, maybe dozens. I used the example located here as a starting point: Rhino Guide Canceling a Python...

View Article


Problems in rhinoscriptsyntax recognizing GUIDs

Hello everyone, I have been coding in python in grasshopper for about 7 or 8 months now, so I there is plenty I still do not understand. One of the biggest problems I have is getting rhinoscriptsyntax...

View Article


Vector Frame export script for Bongo Animation

I’m looking for a script that renders vector image files for each frame of an animation created with Bongo. Has anyone seen any tool like this? Thanks 1 post - 1 participant Read full topic

View Article

Image may be NSFW.
Clik here to view.

Creating/Baking angular dimensions from Python

tl;dr: I am creating/baking angular dimensions from Python, but negative angles never show a minus sign. How can I change the Dimension style to respect the sign? Or alternatively, how do I parse the...

View Article

How to ignore SplitDisjointMesh popup

Howdy again! Have a small issue with a reduction script, i need to reduce meshes by layers, sometimes these layers fail when i run a splitDisjointMesh due to them being a bad object, i don’t know how...

View Article

Rhino Coloring Surface

Hi all, I am trying to output some colored surfaces through a python function which I intend to use in a headless compute environment. import rhinoscriptsyntax as rs import scriptcontext import Rhino...

View Article


Image may be NSFW.
Clik here to view.

How to get a surface of a filleted rectangle via RhinoCommon?

Actually, I’d like to build a flat rectangular surface with all corners filleted to the same radius. What would be the proper way to achieve this? While reviewing the Surface class, I couldn’t find a...

View Article

Image may be NSFW.
Clik here to view.

Problem with detecting the inside connection between extrusions

I am a Python developer using Rhino to do a few spatial analyses. My case here is that I have to find the inside connection between the extrusions and I have written a function to detect it....

View Article


Image may be NSFW.
Clik here to view.

Assign Random Color HSV Values to One or More New Layers

Starting a new thread with more specific details (and my last one got a bit hi-jacked ) @Helvetosaur I was hoping maybe you had a thought about this? Using Python, would like to ask user how many...

View Article

Image may be NSFW.
Clik here to view.

MergeSurface returns a surface bigger than both individual surfaces

Hi I’m using ghPython node and Rhino.Geometry.Brep.MergeSurface to merge to surfaces but the returned surface is bigger than the individual surfaces I feed to the script, I played with the tolerance...

View Article


RhinoScript - CompareGeometry

I don’t seem to be able to get the CompareGeometry to work in either Rhino 7 or the WIP. I’ve copied the example script from the help file and compared one shape with its exact copy and it’s always...

View Article

Problem with CreateSoftEditSurface parameters

I am having trouble making the CreateSoftEditSurface method change a surface. I think the parameters are correct, but the surface is not moving. There isn’t any error messages. Here is the test script...

View Article

Rhino Python open command missing an encoding argument?

Hello, I have to digest an XML file that arrived with a UTF-8-BOM encoding. When I am outside of Rhino - using standard Python at a command prompt - I can open the file using this command: FileHandle...

View Article
Browsing all 5938 articles
Browse latest View live