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

Image may be NSFW.
Clik here to view.

Got stuck in Subdividing a surface

Hi all @AndersDeleuran @diff-arch got stuck in dividing the surface through scripting. The code is dividing the three surfaces but not others. No idea why. Requesting help. surfacedivideerror.gh (14.1...

View Article


Image may be NSFW.
Clik here to view.

[BUG] - RhinoScriptSyntax Selection Methods No Longer Working? - R7 & R8?

Hello, I had the following script utilizing RhinoScriptSyntax to select/unselect objects in the Rhino document based on an input of GUIDs from within a grasshopper scripting component. All was working...

View Article


Open & Customize Plugin Script?

Is it possible to open a plugin’s script to rewrite for customization? (Something akin to opening a block editing it) 1 post - 1 participant Read full topic

View Article

Image may be NSFW.
Clik here to view.

Python - Struggling With Data Trees/Iterating Nested Lists

Hello, I’ve found quite a few topics on datatrees aka lists of lists in Python and stumbled across the tree helper functions which are great! However, I’m stuck on understanding how to loop within a...

View Article

Image may be NSFW.
Clik here to view.

Point Oriented Node in C#

Is there a way to implement the Point Oriented Node in C#? I would like to finally implement the node script (picture) as a C# script and this node is my first hurdle. 3 posts - 2 participants Read...

View Article


No output from surface.Split

RhinoDoc activeDoc = RhinoDoc.ActiveDoc; IEnumerable<RhinoObject> brepObjects = activeDoc.Objects.GetObjectList(ObjectType.Brep); RhinoObject object1 = brepObjects.ElementAt(0); Brep brepBody =...

View Article

Image may be NSFW.
Clik here to view.

GHPython result as list of "other" then integer types

Hi all, I want to go through a list of integers [ x ] and when two consecutive integers are equal, I want to replace one of them by another one, picked randomly from another list of integers [y]. So...

View Article

Copy folder contents from source directory to destination

I’m trying to write a script that will enable me to copy the contents from a source directory to a destination directory using a Boolean trigger. This is what I have. Something I scraped of the...

View Article


Replace Layer Names using XML Data

I have a XML file containing the data of Layer Names and Part Names (approx 1,200 lines) … Is there any option to read that XML data and change the subjected layer name with the part name? Eg; LAYER...

View Article


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

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
Browsing all 4152 articles
Browse latest View live